Page 1 of 1

How to reload solr without restarting Jetty?

Posted: Sun Jul 13, 2014 2:53 am
by gowthamgutha
I have made some changes to my custom SolrSearchServiceImpl class. Now, I would like to see those changes where I would like to re build the index and add the documents from the start.

For this, I am doing jetty-restart which is taking a long time. Is there any way to restart just the Solr component or just refresh the index and reload all the documents to solr from scratch without restarting the server?

Thanks in advance. Hope you will reply as soon as possible.

Re: How to reload solr without restarting Jetty?

Posted: Sun Jul 13, 2014 7:49 am
by RapidTransit
If you are working with Solr I highly recommend you set it up as standalone, its much easier to debug queries, I used Tomcat and dropped commons-io, slf4j-api and slf4j-simple and commons-logging in my lib directory so all the debug info is spit out on my console.

The functionality you are looking for is found only in the enterprise version. But you can lower the solr.index.repeat.interval found in under site resources common.properties

Re: How to reload solr without restarting Jetty?

Posted: Sun Jul 13, 2014 10:44 am
by gowthamgutha
Actually, I have solr running in 8983 port. How could I map that to the broadleaf?

Thanks in advance.