You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.1 version.
Operations: How to Disable an Index
The DisableIndexOperation is used to turn the indexing off for a given index. Querying a
disabled index is allowed, but it may return stale results.
public DisableIndexOperation(string indexName)
|indexName||string||name of an index to disable indexing|
store.Maintenance.Send(new DisableIndexOperation("Orders/Totals")); // index is disabled at this point, new data won't be indexed // but you can still query on this index