

This is achievable calculating an additional coefficient, dependant on the term counts :

We also don’t want to bring strong inconsistencies for the other suggestions, we should ideally only affect the ties. Ideally we want our top scoring suggestion to just have the matched terms if possible. Intuitively we want this order to break the ties.Ĭloser the number of matched terms with the total number of terms for the suggestion, the better. Let’s focus on the first three ranking suggestions we just saw : There is still a tie for the exact prefix matches, but let’s see if we can finalise that improvement as well. The results obtained were quite promising :ġ00 | Mini Bar Fridge a a a a a a a a a a a a a a a a a a a a a a Introducing this advanced positional coefficient calculus helped in improving the overall behavior for the experimental test created. If we compare the suggestion score for both these queries, it would seem unfair to penalise the first one just because it matches 2 terms ( consecutive) while the second query has just one match ( positioned worst than the first match in query1)

Query 2 Suggestion Matched Terms positions : Query 1 Suggestion Matched Terms positions :
