tags:

views:

28

answers:

0

Hi All

I have configured Extract request handler with solr and now when i submit some pdf document to solr using curl it generates following error

Document [NULL] missing required field DocID

my schema is like

<fields>
<field name="DocID" type="string" indexed="true" stored="true"/>
<field name="Contents" type="text" indexed="true" stored="true"/>
<dynamicField name="ignored_*" type="ignored" indexed="false" stored="false"/>
</fields>
<uniqueKey>DocID</uniqueKey>

and here is curl command i m using to submit the document to solr.

curl "http://localhost:8983/solr1/update/extract?literal.DocID=123&amp;fmap.content=Contents&amp;commit=true" -F "myfile=@d:/solr/apache-solr-1.4.0/docs/filename1.pdf"

please help if i m missing something.