You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by TK Solr <tk...@sonic.net> on 2018/01/30 19:54:52 UTC

literal.* use in posting PDF files

I have a schema.xml defined to require two fields, "id" and "libDocumentID". 
solrconfig.xml is the standard one.

Using curl, I tried posting a PDF file like this:

curl 
'http://localhost:8983/solr/update/extract?literal.id=foodf&literal.libDocumentID=foo&commit=true' 
-F "myfile=@foo.pdf"

but I got:

<lst name="error"><str name="msg">[doc=foo.pdf] missing required field: 
libDocumentID</str><int name="code">400</int></lst>

Can I specify more than one litera.name=value ? Do I have to define 
literal.libDocumentID in solrconfig.xml?

I'm using Solr 5.3.1 (please don't ask...).

TK