Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
Instead of using AutocompleteAsync, you can implement your own autocomplete logic using a standard search query with a wildcard or n-gram analyzer:
var results = searchClient
.Search<YourContentType>()
.Filter(x => x.SearchTitle.MatchWildcard($"*{queryTerm}*"))
.Take(10)
.GetResult();
Hi
At the moment is only able to prefix match
Autocomplete typing
As per above
"The autocomplete functionality only works from the beginning of a phrase; the search term must begin with the first word in the autocomplete phrase."
var autoCompletePhrases = await Client.Statistics().AutocompleteAsync(queryterm, count);
Is there anyway to substring match
so if my auto complete term is "one two three"
The result is returned if I start with "one".
If I pass "two" it does not return anything.
Regards