====== Apache Solr ======
===== Stopping Solr =====
./solr stop -k solrrocks -p 8601
The stop keyword and stop port has been set at the start of the Solr server.
===== JSON Response Format =====
By default every response is returned as XML. To get a JSON formatted response the parameter ''wt=json'' must be appended to the request.
curl http://localhost:8080/solr/admin/ping?wt=json
returns
{
"responseHeader": {
"status": 0,
"QTime": 4,
"params": {
"echoParams": "all",
"rows": "10",
"wt": "json",
"q": "solrpingquery",
"qt": "search"
}
},
"status": "OK"
}
See [[http://wiki.apache.org/solr/SolJSON | JSON Response Writer]]