You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.1 version.
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)
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 | Starting point for a query, used for paging |
pageSize | Integer | 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));