Commands: Indexes: How to get index terms?

GetTerms will retrieve all stored terms for a field of an index.

Syntax

IEnumerable<string> GetTerms(
	string index,
	string field,
	string fromValue,
	int pageSize);
Parameters
index string Name of an index
field string Index field
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

IEnumerable<string> terms = store
	.DatabaseCommands
	.GetTerms("Orders/Totals", "Company", null, 128);