You are currently browsing legacy 5.0 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

Operations: How to Get Index Terms

The GetTermsOperation will retrieve stored terms for a field of an index.


public GetTermsOperation(string indexName, string field, string fromValue, int? pageSize = null)
indexName string Name of an index to get terms for
field string Name of field to get terms for
fromValue string Starting point for a query, used for paging
pageSize int? Maximum number of terms that will be returned
Return Value
string[] Array of index terms.


string[] terms = store.Maintenance.Send(new GetTermsOperation("Orders/Totals", "Employee", null));