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

Exact match of the search doesn't appear on the top / relevance order is broken #424

Closed
kha84 opened this issue Aug 20, 2022 · 5 comments
Closed

Comments

@kha84
Copy link

kha84 commented Aug 20, 2022

Raised this first for plasma-discover (https://invent.kde.org/plasma/discover/-/issues/18), but they're saying it's using the appstream and suggested to raise a ticket here.

Here's the simple example - I tried to search for "konqueror" I can only find it at ~ hundred position from the top, when the results are sorted by relevance (I think this is what plasma-discover guys are using now by default)

Screenshot_20220820_161811

@ximion
Copy link
Owner

ximion commented Aug 20, 2022

That's because you misspelled "konqueror" - correcting spelling mistakes is super difficult and we don't really do that.
If you search for the right thing exactly, it will show up at the top:
grafik

@kha84
Copy link
Author

kha84 commented Aug 20, 2022

Sure, thx that do make a lot of sense. Looks like I was just foolishly hoping the relevance sorting is smart enough to figure it out itself.

@kha84
Copy link
Author

kha84 commented Aug 20, 2022

One last question on the same topic - if I put just "konq" as a search token, I still can see a lot of irrelevant apps in the top search results, which are having "konq" neither in their names nor in the description. That doesn't sound right to me:

Screenshot_20220820_171341

@ximion
Copy link
Owner

ximion commented Aug 20, 2022

Hmm, something seems to either be broken in Discover or odd with your setup. Because:

~$ appstreamcli search konq
Identifier: org.kde.konquest.desktop [desktop-application]
Name: Konquest
Summary: Galaktisches Strategiespiel
Package: konquest
Homepage: https://apps.kde.org/konquest
Icon: konquest_konquest.png
---
Identifier: org.kde.konquest.desktop [desktop-application]
Name: Konquest
Summary: Galaktisches Strategiespiel
Bundle: flatpak:app/org.kde.konquest/x86_64/stable
Homepage: https://apps.kde.org/konquest
Icon: org.kde.konquest.png
---
Identifier: org.kde.konqueror.desktop [desktop-application]
Name: Konqueror
Summary: Dateiverwaltung & Webbrowser von KDE
Package: konqueror
Homepage: https://www.konqueror.org
Icon: konqueror_konqueror.png
---
Identifier: org.kde.filelight.desktop [desktop-application]
Name: Filelight
Summary: 
  Filelight zeigt Diagramme aus konzentrischen Ringen an, die die Belegung von Speichermedien auf
  ihrem Rechner darstellen
Package: filelight
Homepage: https://kde.org/applications/en/utilities/org.kde.filelight
Icon: filelight_filelight.png
[...]

Likewise:
grafik

It is really weird that you get "KAtomic" though, you can maybe try searching with appstreamcli and see if you get the same result!

@kha84
Copy link
Author

kha84 commented Aug 20, 2022

Yes, it looks like it's still plasma-discover bug, because with using appstreamcli I'm getting perfectly sane results the same as you. Closing this ticket

@kha84 kha84 closed this as completed Aug 20, 2022
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

2 participants