You are currently browsing legacy 4.1 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 Get an Index

GetIndexOperation is used to retrieve an index definition from a database.

Syntax

public GetIndexOperation(String indexName)

Parameters
indexName String name of an index
Return Value
IndexDefinition Instance of IndexDefinition representing index.

Example

IndexDefinition index
    = store.maintenance()
        .send(new GetIndexOperation("Orders/Totals"));