Differences

This shows you the differences between two versions of the page.

Link to this comparison view

solr [2017/02/14 14:44]
solr [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Apache Solr ======
  
 +===== Stopping Solr =====
 +
 +    ./solr stop -k solrrocks -p 8601
 +
 +<note>The stop keyword and stop port has been set at the start of the Solr server.</note>
 +
 +===== 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
 +
 +<sxh json>
 +{
 +    "responseHeader": {
 +        "status": 0,
 +        "QTime": 4,
 +        "params": {
 +            "echoParams": "all",
 +            "rows": "10",
 +            "wt": "json",
 +            "q": "solrpingquery",
 +            "qt": "search"
 +        }
 +    },
 +    "status": "OK"
 +}
 +</sxh>
 +
 +See [[http://wiki.apache.org/solr/SolJSON | JSON Response Writer]]