You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.1 version.
Operations: How to Enable an Index
The EnableIndexOperation is used to turn on the indexing for a given index.
Syntax
public EnableIndexOperation(String indexName)
Parameters | ||
---|---|---|
indexName | String | name of an index to enable indexing |
Example
store.maintenance().send(new EnableIndexOperation("Orders/Totals"));