Comment 1 for bug 930065

Revision history for this message
Lars Karlitski (larsu) wrote :

I had a comment about search quality when reviewing part of the hud code[1]. Will paste it here again so that it doesn't get lost:

imo, sorting by summing the relative usage and distance isn't a very good
strategy, as both usages and distances will tend to only have few very
small and many very large values, which is always tricky when dealing
with percentages.

Somewhat exaggerated example: Usage count for "open" and "save" is 10 each.
I type "blur" (which is a perfect match) for the first time:

       distance usage total (as in usage_sort())
blur 0 0 % 0 0 % 100 %
open 4 50 % 10 50 % 100 %
save 4 50 % 10 50 % 100 %

Ranking those 3 the same is surely not what we want?

[1] https://code.launchpad.net/~ted/indicator-appmenu/hud/+merge/89905/comments/194449