Tuesday, 11 August 2015

How to disable Indexing in sitecore

<setting name="Indexing.Enabled" value="false" />

Sitecore.Configuration.Settings.Indexing.Enabled = false;
 
This is used in sitecore as
 
            public static bool Enabled
            {
                get
                {
                    return Settings.Indexing.enabled;
                }
                set
                {
                    Settings.Indexing.enabled = value;
                }
            } 
 
 
Also 
 
    // How to pause indexing in Sitecore 7.0 Update-1 (rev130810) and later
    IndexCustodian.PauseIndexing();
    // Do a lot of item updates
    // Enable indexing again. Might be a good idea to also rebuild all indexes.
    IndexCustodian.ResumeIndexing();
 
 

No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...