sugarlabs/aslo-v4

Search for Implode yields many matches that have no relevance

quozl opened this issue · 1 comments

quozl commented

A search for "implode" yields results;

  • Implode-20
  • Pointillism-9
  • ViewSlides-14
  • Simulate-2
  • Words-24
  • Help-20
  • Calculate-46
  • Terminal-47
  • Record-201
  • Flip-10
  • Jukebox-26
  • Paint-70
  • Abacus-61
  • Portfolio-52
  • Write-101
  • ImageVIewer-65
  • Sliderule-35
  • Memorize-58
  • SugarCommander-10
  • Physics-35

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

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.