I think that you can simply add a decreasing $sort stage on the field searchScore.
Your exact matches probably have an higher searchScore and would end up the first documents. The order is probably the natural order of the collection since it is the most efficient.
My guess, and I could be totally wrong, is that you’re using autocomplete and your max grams is set to 7. The first 7 chars all match your search query. Hence them having the same score.
Improving exact match for this query is something that we are working on at the moment.
However, this is correct before and after that change.:
My guess, and I could be totally wrong, is that you’re using autocomplete and your max grams is set to 7. The first 7 chars all match your search query.
This is an exact match of the first. You should probably wrap this is a compound query with the autocomplete operator as one should clause, and the text operator as another clause.