Language
C#
Article For
3.5 4.0 4.1 4.2 5.0 5.2 5.3

Operations: How to Reset an Index

ResetIndexOperation will remove all indexing data from a server for a given index so the indexation can start from scratch for that index.

Syntax

public ResetIndexOperation(String indexName)
Parameters
indexName String name of an index to reset

Example

store.maintenance()
    .send(new ResetIndexOperation("Orders/Totals"));