You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Indexes: How to change index lock mode?

setIndexLock method allows you to change index lock mode for a given index.


void setIndexLock(String name, IndexLockMode lockMode);
name string name of an index to change lock mode for
lockMode IndexLockMode new index lock mode


  .setIndexLock("Orders/Totals", IndexLockMode.LOCKED_IGNORE);