Lohit
Lohit

Reputation: 891

Solr full refresh without deleting index

I want to do solr full refresh with out deleting the index so that the data can be accessed until full refresh is done. Once the full refresh is completed the old index has to be removed. How can i do this, please help.

Upvotes: 0

Views: 211

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

I would suggest the use of multiple cores in your Solr implementation. A "live" core and an "ondeck" core, where "live" is the current index and "ondeck" is the one that you will refresh into. (Note: you can name the cores anything that is meaningful to you) Once the refresh has been completed, you can issue a SWAP command that will switch the two cores out in real time without any impact to the users (eg. Solr will manage the searches being executed against the cores behind the scenes for you).

We have implemented this exact scenario on a couple of other indexes at my current company with very good success.

Upvotes: 2

Related Questions