0

I am very new to Solr. I am using Solr 6.2.1 version and working on windows. In that I could be indexed .csv,.json files. But while I am indexing the PDF files I am facing issue like "Document is missing mandatory uniqueKey field: id".

Here I used command for creating Core,

C:\Solr\solr-6.2.1\bin>solr create -c Testcollection -d basic_configs

and command for Indexing pdf , C:\Solr\solr-6.2.1\example\exampledocs>java -Dtype=application/pdf -Durl=http:// localhost:8983/solr/Testcollection/update/extract -jar post.jar one_order_model. pdf

Please suggest me that how can fix this issue.

Thanks in Advance

Nagenter image description here

user3624736
  • 21
  • 1
  • 1
  • 9
  • 1
    Some of your document won't have the field `id` but it is required (uniqueKey field) hence the error. A solution is to tell Solr to generate a unique key when he needs it, see if this helps : http://stackoverflow.com/questions/39932280/solr-6-2-1-uniquefield-not-work/39933700 – EricLavault Oct 08 '16 at 15:02
  • Thank you for response. I followed above link ,but still I am getting same error. – user3624736 Oct 10 '16 at 04:26

0 Answers0