Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show close matches if zero results found #119

Open
fenilgmehta opened this issue Sep 20, 2022 · 0 comments
Open

Show close matches if zero results found #119

fenilgmehta opened this issue Sep 20, 2022 · 0 comments

Comments

@fenilgmehta
Copy link

Hi,
Thanks for this wonderful app 🙂

I have one suggestion for search results improvement. Consider a situation where there is an app called Our Simple App present in our app drawer (i.e. it is installed). Now, when we search for the word simple, this app (i.e. "Our Simple App") will show up. However, since mobile devices are small in size, there are chances that a person may accidentally click a letter close to the one which they intend to click. Example, one can accidentally click n instead of m and the search query would become sinple. This new query will not match any app. So, in this case, we can show apps based on their edit distance (please have a look at the references below) to make the search experience even better.

There are two things which one can decide when implementing this feature:

  1. What "edit distance" threshold to be used so that only those apps with the edit distance above/below the threshold are shown and not all the apps. Probably this can be kept configurable in settings (I think this is preferred).
  2. Do we run this "edit distance" searching technique only when normal search fails, or do we always show these "edit distance" app suggestions below the matched apps as a separate section with a title like "Close matches" (I think this is preferred).

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant