Send multiple files to solr

advertisements

I want to sending multiple files to solr using curl.How i can do it ?

I can done with only one file with command for example:

curl "http://localhost:8983/solr/update/extract?literal.id=paas2&commit=true" -F "[email protected]"

Anyone can help me,

Tks


The api does not support passing multiple files for extraction.
Usually the last file will be the only one thats gets uploaded and added.

You can have individual files indexed as separate entities in Solr.

OR One way to upload multiple files is to zip these files and upload the zip file.
There is one issue with Solr indexing zip files and you can try the SOLR-2332 Patch