You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Indexes: How to get index terms?

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


IEnumerable<string> GetTerms(
	string index,
	string field,
	string fromValue,
	int pageSize);
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.


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