We ahve an index with a completion field for autocomplete look ups.
Is there any way of using a wild card search as opposed to a prefix to search the index.
Our index is very small (100,000 records).
Thanks
var searchResponse = client.Search<Locality>(s => s
.Size(MAX_SUGGESTIONS)
.Suggest(ss => ss
.Completion("suggestions", c => c
.Field("localitySuggestions")
.Size(MAX_SUGGESTIONS)
// .Prefix(prefix)
.Regex($".*{prefix}*")
//.SkipDuplicates()
//.Contexts(ctxs=>ctxs/*.Context("country", ctx => ctx.Context("ie").Boost(3))*/.Context("flags", ctx => ctx.Context("13").Boost(3)))
)
).Index(index)
);
return searchResponse;