Operations: How to Stop Indexing



Syntax

public StopIndexingOperation()

Example

// Stop indexing
store.Maintenance.Send(new StopIndexingOperation());

// 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));