Add a binary document
curl "http://localhost:8983/solr/update/extract?literal.id=doc1&commit=true" -F "mydocument=@your_document.pdf"
Add a CSV file
curl "http://localhost:8983/solr/update/csv?stream.file=exampledocs/document.csv&separator=;&commit=true&optimze=true&stream.contentType=text/plain;charset=utf-8"Keep in mind, that you need to specify fields in you CSV file in schema.xml.
Delete entire index
# query to delete index curl http://localhost:8983/solr/update --data '' -H 'Content-type:text/xml; charset=utf-8' # commit changes curl http://localhost:8983/solr/update --data ' *:* ' -H 'Content-type:text/xml; charset=utf-8'