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
curl \
http://{serverName}/databases/{databaseName}/indexes/{indexName} \
-X RESET
Request
Query parameter | Required | Description |
---|---|---|
indexName | Yes | name of an index to reset |
Response
Status code | Description |
---|---|
200 |
OK |
Example I
Reset index Orders/Totals
.
curl -X RESET "http://localhost:8080/databases/NorthWind/indexes/Orders/Totals"
< HTTP/1.1 200 OK
{"Reset":"Orders/Totals"}