Get Index Terms Operation

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

Syntax

public GetTermsOperation(String indexName, String field, String fromValue)

public GetTermsOperation(String indexName, String field, String fromValue, Integer pageSize)
Parameters
indexName String Name of an index to get terms for
field String Name of field to get terms for
fromValue String The starting term from which to return results
pageSize Integer Number of terms to get
Return Value
String[] List of terms for the requested index-field.
Alphabetically ordered.

Example

String[] terms = store
    .maintenance()
    .send(
        new GetTermsOperation("Orders/Totals", "Employee", null));