User Tools

Site Tools


solr

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 JSON Response Writer

solr.txt · Last modified: 2017/02/14 13:44 by mihael