Different ways to rebuild and refresh Solr Indexes
Hello Everyone, I am back with another blog. This time we will discuss how we can rebuild our Solr indexes programmatically. What is the difference between Solr force index rebuild and Solr index refresh. How we can achieve Solr index refresh programmatically. So let's start with the same without wasting any time. We all are aware that we can rebuild our indexes from Sitecore control panel. Sitecore also provides the option to rebuild a tree instead of rebuilding whole index from ribbon. But if we want to rebuild our indexes programmatically the how we can do it. Also if we don't want to rebuild the whole index, is there any way programmatically we can refresh the index for specific path or folder. Let's understand first, difference between the two first and see the code accordingly. 1. Sitecore Index Rebuild: Whenever we do a rebuild index, Solr deletes the indexed files from its data folder and again recreates it from scratch. 2. Sitecore Index Refresh: Whe...