Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find whether solr server is running or not

Tags:

solr

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

like image 835
Romi Avatar asked Jul 19 '11 09:07

Romi


People also ask

How do I manually start Solr server?

To start standalone solr server go to \hybris\bin\ext-commerce\solrserver\resources\solr\bin and execute command solr start -all in command prompt.

What version of Solr am I running?

On the solr Admin page click on [INFO], the next page will display the version details.

How do I access Solr server?

Start the Server If you didn't start Solr after installing it, you can start it by running bin/solr from the Solr directory. If you are running Windows, you can start Solr by running bin\solr. cmd instead. This will start Solr in the background, listening on port 8983.


1 Answers

You could periodically ping your server (e.g. http://localhost:8983/solr/admin/ping) and in case of an error pass that message on to the frontend...

like image 157
cpt_ahag Avatar answered Sep 30 '22 13:09

cpt_ahag