How to rebuild custom solr index programmatically in Sitecore
Hey , there! Welcome to "Sitecore Series" Post is all about sharing the details regarding custom index rebuild through code. Sitecore rebuilds indexes data but it does not rebuild indexes very frequently, all depends on the indexing strategies specified for that index. In Sitecore, we have an option to rebuild indexes under control panel and the index rebuild can be performed manually but if we want the index to be rebuild after some operation is done or after some time span? Let's achieve this through scheduler. Create a scheduler to perform index rebuild operation. 1) scheduler : using Sitecore.Data.Items; using Sitecore.Diagnostics; using Sitecore.Tasks; namespace Testing.Feature.Testing.Scheduler { public class TestIndexRunScheduler { public void Execute(Item[] items, CommandItem command, ScheduleItem scheduleItem) { try { //Rebuild Index //Fetch the index to perform rebuild opera...