You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: SearchAsync

SearchAsync retrieves the names of configurations that starts with a specified prefix.


Task<ConfigurationSearchResults> SearchAsync(string prefix, int start = 0, int pageSize = 25);
prefix string The prefix value with which the name of a configuration has to start
start int The number of results that should be skipped
pageSize int The maximum number of results that will be returned

Return Value
Task<ConfigurationSearchResults> A task that represents the asynchronous operation. The task result is ConfigurationSearchResults object which represents results of a prefix query.


In order to get all configuration names which keys start with descriptions/ prefix you can use the following code:

int start = 0;
int pageSize = 10;

	ConfigurationSearchResults results = await store
		.SearchAsync("descriptions/", start, pageSize);

	IList<string> names = results.ConfigNames;

	start += pageSize;
	if(names.Count < pageSize)

} while (true);