sugarlabs / aslo-v4

A simple app store for sugarlabs
https://v4.activities.sugarlabs.org
GNU Affero General Public License v3.0
7 stars 12 forks source link

Search for Implode yields many matches that have no relevance #34

Open quozl opened 4 years ago

quozl commented 4 years ago

A search for "implode" yields results;

All but the first result are expected. Why are the other results shown?

srevinsaju commented 4 years ago

The levenshtein distance across the other activities are probably smaller, and hence they are shown. Search results are classified on the basis of confidence. implode has the highest confidence (smallest levenshtein distance), and hence shown first. The others still match, well I do not know, it's a library specific issue (luacong/minisearch). I will just check the API documentation if I missed something.

I can not depend on the library, and depend on @free-libre-software 's own implementation of the search, however, that search is for developers, not users.

A search for Fraction Bounce yields no results , but a search for FractionBounce shows the FractionBounce activities. A typo in Implode as Implede shows no results, but will show only and only the Implode Activity when the search query is implode.