Is there any way to analyze the prefix text as the same analyzer used in the indexing.
For example :
var searchResponse = await client.SearchAsync<Locality>(s => s.Index($"localities-{country.ToLower()}")
.Query(q => q
.Prefix(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Name)
.Value(locality.ToLower())
.Rewrite(MultiTermQueryRewrite.TopTerms(10))
)
)
);
We keep having to use the ToLower() function to lowecase everything which is not ideal as the analysis in the index may be different.