2
votes

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

2

2 Answers

1
votes

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

1
votes

i using apache solr 4.0 Beta which have capability to upload multiple file and generate id for each file uploaded using post.jar and It's very helpfull for me.

Let'see on :

http://wiki.apache.org/solr/ExtractingRequestHandler#SimplePostTool_.28post.jar.29

Thanks all :)

my problem have solved :)