How to find whether solr server is running or not
I am running an application that get search results from solr server. But when server is not running i get no response from the server. Is there any way i can found that my server is not running so that i can give proper error message regarding it - Thanks Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181870.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
Check for HTTP response code, if its other than 200 means services are not OK. On 19 July 2011 14:39, Romi romijain3...@gmail.com wrote: I am running an application that get search results from solr server. But when server is not running i get no response from the server. Is there any way i can found that my server is not running so that i can give proper error message regarding it - Thanks Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3181870.html Sent from the Solr - User mailing list archive at Nabble.com. -- Thanks and Regards Mohammad Shariq
Re: How to find whether solr server is running or not
i am getting json response from solr as *$.getJSON(http://192.168.1.9:8983/solr/db/select/?qt=dismaxwt=jsonstart=0rows=100q=eleganthl=truehl.fl=texthl.usePhraseHighlighter=truesort= scorejson.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.
Re: How to find whether solr server is running or not
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=responseHeaderint name=status0/intint name=QTime5/intlst name=paramsstr name=echoParamsall/strstr name=rows10/strstr name=echoParamsall/strstr name=qsolrpingquery/strstr name=qtsearch/str/lst/lststr name=statusOK/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=dismaxwt=jsonstart=0rows=100q=eleganthl=truehl.fl=texthl.usePhraseHighlighter=truesort= scorejson.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.
Re: How to find whether solr server is running or not
But the problem is when solr server is not runing *http://host:port/solr/admin/ping* will not give me any json response then how will i get the status :( when i run this url browser gives me following error *Unable to connect Firefox can't establish a connection to the server at 192.168.1.9:8983.* - Thanks Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3182202.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
Try doing this from a program rather than the browser. If Solr isn't running, you have to infer that fact from the lack of a response. Best Erick On Tue, Jul 19, 2011 at 7:42 AM, Romi romijain3...@gmail.com wrote: But the problem is when solr server is not runing *http://host:port/solr/admin/ping* will not give me any json response then how will i get the status :( when i run this url browser gives me following error *Unable to connect Firefox can't establish a connection to the server at 192.168.1.9:8983.* - Thanks Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3182202.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
I think anything but a 200 OK mean it is dead like the proverbial parrot :) François On Jul 19, 2011, at 7:42 AM, Romi wrote: But the problem is when solr server is not runing *http://host:port/solr/admin/ping* will not give me any json response then how will i get the status :( when i run this url browser gives me following error *Unable to connect Firefox can't establish a connection to the server at 192.168.1.9:8983.* - Thanks Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3182202.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
i am new in HADOOP TESTING , any body tell me about the hadoop testing , what should be sufficient for a tester to test hadoop based projects . please help me -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3182201.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to find whether solr server is running or not
François Schiettecatte, how will i get 200 status code. I am getting json response from solr server, as *$.getJSON(http://192.168.1.9:8983/solr/db/select/?qt=dismaxwt=jsonstart=0rows=100q=eleganthl=truehl.fl=texthl.usePhraseHighlighter=truesort= scorejson.wrf=?, function(result){ * but if solr server is not running this code does not execute...how can i check than that server is not running - Thanks Regards Romi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-find-whether-solr-server-is-running-or-not-tp3181870p3184556.html Sent from the Solr - User mailing list archive at Nabble.com.