You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.
Commands: Indexes: How to reset index?
ResetIndex will remove all indexing data from a server for a given index so the indexation can start from scratch for that index.
Syntax
void ResetIndex(string name);
Parameters | ||
---|---|---|
name | string | name of an index to reset |
Example
store.DatabaseCommands.ResetIndex("Orders/Totals");