Skip to main content
The queryType parameter controls if and how Algolia considers matches at the beginning of query words. For more information, see Prefix searching.

Options

prefixLast
Only the last word in the query is treated as a prefix.
All preceding words must match in full.
prefixAll
All words in the query are treated as prefixes.
prefixNone
Prefix search is turned off. All query words must match completely.

Example

Current API clients

IndexSettings settings = new IndexSettings();
settings.QueryType = "prefixLast";
// settings.QueryType = "prefixAll";
// settings.QueryType = "prefixNone";

index.SetSettings(settings);
IndexSettings settings = new IndexSettings();
settings.QueryType = "prefixLast";
// settings.QueryType = "prefixAll";
// settings.QueryType = "prefixNone";

index.SetSettings(settings);
I