We have the following Wildcard query.
What we want to do is if the query matches the beginning then it should be boosted to the top. All results should be in Ascending alphabetic order based on the field "Name" which is the target of the query for those that begin with the prefix and thoose that have the refix within their name.
var searchResponse = client.Search<Locality>(s => s
.Index(index)
.Size(100)
.Query(ss => ss
.Wildcard(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Name)
.Value($"*{prefix}*")
.CaseInsensitive(true)
)
);