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
To start standalone solr server go to \hybris\bin\ext-commerce\solrserver\resources\solr\bin and execute command solr start -all in command prompt.
On the solr Admin page click on [INFO], the next page will display the version details.
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.
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With