Bug 452134

Summary: "LXD" snap sorted to the bottom in a search
Product: [Applications] Discover Reporter: Heinrich Schuchardt <xypron.glpk>
Component: Snap BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, nate, sgmoore, xypron.glpk
Priority: NOR    
Version: 5.24.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot KDE Discover

Description Heinrich Schuchardt 2022-04-01 02:11:04 UTC
Created attachment 147872 [details]
Screenshot KDE Discover

SUMMARY

Searching in Discover should only show relevant results sorted by relevance.


STEPS TO REPRODUCE

The appended screenshot shows part of the output when search for "LXD".

OBSERVED RESULT

The exact hit, the lxd snap, is found after a lot of scrolling close to the bottom of the list.

EXPECTED RESULT

I would have expected the exact match (snap lxd) to be shown on top of the list.

I would not expect any suggestions that have neither the search term in the title nor in the description to appear in the list.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04 Jammy
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Heinrich Schuchardt 2022-04-01 02:12:43 UTC
Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/plasma-discover/+bug/1967444
Comment 2 Nate Graham 2022-04-01 19:36:48 UTC
Search results are sorted by relevance, but the definition of relevance being used by the software may not match your own. :) 

However in this case the issue is different anyway: I think there is special handling for Snap search rsults because Snap doesn't use AppStream which otherwise provides our search results. I guess we need to merge the results better.
Comment 3 Scarlett Moore 2024-03-29 08:16:33 UTC
I can confirm this issue. A search for LXD resulted in 8 completely irrelevant results before the LXD snap shows up.