Wednesday, August 16, 2017

Rebuild indexes programmatically

  Sitecore.ContentSearch.ISearchIndex index = Sitecore.ContentSearch.ContentSearchManager.GetIndex("indexedarticles");
            if (index != null)
            {
                index.Rebuild(Sitecore.ContentSearch.IndexingOptions.ForcedIndexing);
            }


===========================

Indexes don't show up in control panel. Load them in solr console first. If they show up there then start looking at all possible config files. Could be upper case vs lowercase mismatch in naming.

No comments:

Post a Comment