Re: How to find whether solr server is running or not

2011-07-19 Thread Romi
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=dismax&wt=json&&start=0&rows=100&q="elegant"&hl=true&hl.fl=text&hl.usePhraseHighlighter=true&sort= score&json.wrf=?", function(result){ *

Re: How to find whether solr server is running or not

2011-07-19 Thread Chanty
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-tp3181870p3

Re: How to find whether solr server is running or not

2011-07-19 Thread François Schiettecatte
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 :( >

Re: How to find whether solr server is running or not

2011-07-19 Thread Erick Erickson
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 wrote: > But the problem is when solr server is not runing > *"http://host:port/solr/admin/ping"* > > will not g

Re: How to find whether solr server is running or not

2011-07-19 Thread Romi
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:89

Re: How to find whether solr server is running or not

2011-07-19 Thread Péter Király
You can use ping: http://host:port/solr/admin/ping The response is something like this: 05all10allsolrpingquerysearchOK 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":"solrp

Re: How to find whether solr server is running or not

2011-07-19 Thread Romi
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 &

Re: How to find whether solr server is running or not

2011-07-19 Thread Mohammad Shariq
Check for HTTP response code, if its other than 200 means services are not OK. On 19 July 2011 14:39, Romi 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 ser