lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhangxin0804 <>
Subject Different methods of sending documents to Solr
Date Fri, 27 Mar 2015 02:47:33 GMT
Hi All,

    I am trying to post data into Solr using curl command. Does anybody
could tell me the difference between the following two methods?

curl "http://localhost:8983/solr/update/extract?"
-F "myfile=@tutorial.html"

The -F flag instructs curl to POST data using the Content-Type
multipart/form-data and supports the uploading of binary files. 


--data-binary @tutorial.html  -H 'Content-type:text/html'

   Consider my situation:
   I want to post many different content-types of files into Solr. Which
method should I choose?

  Thank you so much.


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message