see on GitHub

Administration : Index Administration

RavenDB indexes can be administrated easily by the user with the Studio or via maintenance operations in the Client API.

Stop & Start

Stopping the indexing for a database will result in pausing all indexes. You can do that using the Studio or the Client API. The same way you can resume it (the operation to start indexing can be found here).

You can also stop and start a single index. The Client API operations are StopIndex and StartIndex.

Indexing will be resumed automatically after a server restart.

Operation scope: Local node

Disable & Enable

Disabling an index can be done via the Studio or the Client API operations: DisableIndex, EnableIndex.

Querying a disabled index is allowed but it may return stale results. Unlike stopping the index, the disable index is a persistent operation, so the index remains disabled even after a server restart.

Operation scope: Local node


An index usually needs to be reset once it reached its error quota and its state was changed to Error. Resetting an index means forcing RavenDB to re-index all documents matched by the index definition (can be a lengthy process on large databases).

You can reset an index using the Studio or the Client API.

Operation scope: Local node


You can delete an index by using the Studio or the Client API.

Operation scope: Cluster

Lock Mode

This feature applies to changing an index definition on the production server. Index locking has two possible results:

  • any changes to the locked index will be ignored,
  • an error will be raised when someone tries to modify the index.

The typical flow is that you update the index definition on the server, then update it on the codebase, and finally deploy the application to match them. While the index is locked, at any time when IndexCreation.CreateIndexes() on start up is called, the changes you have introduced will not be reverted.

It is important to note that this is not a security feature, and you can unlock an index at any time.

To lock the index you can use the Studio or the Client API.

The available modes are:

  • Unlock
  • LockedIgnore
  • LockedError

Operation scope: Cluster


Each index has a dedicated thread that handles all the work for the index. RavenDB uses thread priorities at the operating system level to hint what should be done first. You can increase or lower the index priority and RavenDB will update the indexing thread accordingly:

RavenDB Index Priority OS Thread Priority
Low Lowest
Normal (default) BelowNormal
High Normal

You can change the index priority by using the Studio or the Client API.

Expert configuration options

You can control the affinity of indexing threads and number of cores that won't be used by indexes via the following configurations:

Operation scope: Cluster