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 Indexes

GetIndexesOperation is used to retrieve multiple index definitions from a database.

Syntax

public GetIndexesOperation(int start, int pageSize)

Parameters
start int Number of indexes that should be skipped
pageSize int Maximum number of indexes that will be retrieved
Return Value
IndexDefinition Instance of IndexDefinition representing index.

Example

IndexDefinition[] indexes
    = store.maintenance()
        .send(new GetIndexesOperation(0, 10));