Class BackgroundIndexRebuilder
Utility to rebuild all indexes on a background thread
Inheritance
System.Object
Namespace: Umbraco.Web.Search
Assembly: Umbraco.Web.dll
Syntax
public sealed class BackgroundIndexRebuilder
Constructors
View SourceBackgroundIndexRebuilder(IMainDom, IProfilingLogger, IndexRebuilder)
Declaration
public BackgroundIndexRebuilder(IMainDom mainDom, IProfilingLogger logger, IndexRebuilder indexRebuilder)
Parameters
Type | Name | Description |
---|---|---|
IMainDom | mainDom | |
IProfilingLogger | logger | |
Umbraco.Examine.IndexRebuilder | indexRebuilder |
Methods
View SourceRebuildIndexes(Boolean, Int32)
Called to rebuild empty indexes on startup
Declaration
public void RebuildIndexes(bool onlyEmptyIndexes, int waitMilliseconds = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | onlyEmptyIndexes | |
System.Int32 | waitMilliseconds |