Reputation:
Followup question from Indexing office formats with a custom field type schema
Uploading files to Solr is working.
I now need to pass additional parameters like 'modified' or 'mimetype' (as defined in the schema) as URL parameters. All examples use 'literal.id' for specifying the primary id of each document. Additional parameters to be indexed must be prefixed with 'literal.' as well in order to be indexed properly?
Upvotes: 1
Views: 784
Reputation: 52779
Order does not matter but they need to be prefixed by literal.
e.g. literal.title=Test
curl "http://localhost:8983/solr/update/extract?literal.id=2&literal.title=Test&commit=true&fmap.content=text" -F "[email protected]"
Upvotes: 1