You can use ping:
http://host:port/solr/admin/ping

The response is something like this:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">5</int><lst name="params"><str
name="echoParams">all</str><str name="rows">10</str><str
name="echoParams">all</str><str name="q">solrpingquery</str><str
name="qt">search</str></lst></lst><str name="status">OK</str>
</response>

or with JSON response:
http://host:port/solr/admin/ping?wt=json
{"responseHeader":{"status":0,"QTime":2,"params":{"echoParams":"all","rows":"10","echoParams":"all","q":"solrpingquery","qt":"search","wt":"json"}},"status":"OK"}

Hope this helps.
Péter

-- 
eXtensible Catalog
http://drupal.org/project/xc

2011/7/19 Romi <romijain3...@gmail.com>:
> i am getting json response from solr as
>
> *$.getJSON("http://192.168.1.9:8983/solr/db/select/?qt=dismax&wt=json&&start=0&rows=100&q="elegant"&hl=true&hl.fl=text&hl.usePhraseHighlighter=true&sort=
> score&json.wrf=?", function(result){*
>
> how can i check whether i get response or not
>
>
>
>
> -----
> Thanks & Regards
> Romi
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181942.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to