Skip to main content

Operations: How to Get Index Terms

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

Syntax

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

Example

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