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
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.
Example
string[] terms = store.Maintenance.Send(new GetTermsOperation("Orders/Totals", "Employee", null));
Please enable JavaScript to view the comments powered by Disqus.