I'm trying to reload the Solr core (version 3.6.0) by means of the following sentence:
curl http://localhost:8983/solr/admin/cores?action=RELOAD\&core=mycore
When I execute it, I get the following response:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1316</int>
</lst>
</response>
I get a similar response when I put such URL at my browser (the difference is the value of QTime).
My problem is that, if I call to the URL from the browser I can see at the log information that the reload is executed, but if I call it from the CURL statement, I can't see anything at my log info (that is to say, no reload process has been executed).
Do I have to change some config data? It seems like the call is not arriving to the Solr server...
Try to enclose the URL in the command with double-quotes as follows:
curl "http://localhost:8983/solr/admin/cores?action=RELOAD&core=mycore"
Hope this helps