You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that when searching for a word, results containing all of the letters in that word, even if they are separated by other letters, often appear above results where the word appears in its entirety.
For example when searching "ham" in the example below I would expect this to show the result with "ham" in it first? Is this a deliberate design feature? Is there a way of setting it to take into account the distance between letters?
Thanks for your help.
The text was updated successfully, but these errors were encountered:
The original Quicksilver scoring algorithm was intended to make it easy to launch apps or commands using just a few letters. So matches on capital letters or letters after spaces are scored higher than matches in the middle of a word. That way, you can type ai to match Adobe Illustrator before Brain Teasers or something.
Matches farther into the string are also discounted. If the matches start at the same location, the full match will score higher:
I agree these don't always produce exactly the expected order, though usually the desired string is within the top few results.
There are some ways to tweak how some of the internals of the algorithm work, though I haven't documented it yet as I'm not sure it's a very good approach. The config key in the options parameter can be used to pass in a different object to change some of the scoring settings. The code is in config.js.
If you wanted to try disabling the special handling of capitals and beginnings of words, you could try something like this:
Hi,
I have noticed that when searching for a word, results containing all of the letters in that word, even if they are separated by other letters, often appear above results where the word appears in its entirety.
For example when searching "ham" in the example below I would expect this to show the result with "ham" in it first? Is this a deliberate design feature? Is there a way of setting it to take into account the distance between letters?
Thanks for your help.
The text was updated successfully, but these errors were encountered: