Operations: How to Start Indexing


  • StartIndexingOperation is used to resume indexing for the entire database after indexing has been stopped.

  • You must restart the database with ToggleDatabasesStateOperation to implement the operation after using StartIndexingOperation (see example).

  • Use StartIndexOperation to start a single index.


Syntax

public StartIndexingOperation()

Example

// Start indexing
store.Maintenance.Send(new StartIndexingOperation());

// Disable the database
store.Maintenance.Server.Send(new ToggleDatabasesStateOperation(store.Database, true));
// Enable the database to apply new settings
store.Maintenance.Server.Send(new ToggleDatabasesStateOperation(store.Database, false));