You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Operations: How to Stop an Index

The StopIndexOperation is used to stop indexing for an index.

Note

Indexing will be resumed automatically after server restart.

Syntax

public StopIndexOperation(String indexName)

Parameters
indexName String name of an index to stop indexing

Example

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