mjakeman / extension-manager

A utility for browsing and installing GNOME Shell Extensions.
https://mattjakeman.com/apps/extension-manager
GNU General Public License v3.0
1k stars 80 forks source link

Search results broken unless sorting by "recent" #451

Closed t3dium closed 7 months ago

t3dium commented 1 year ago

When sorting by recent, and for e.g searching for AppIndicator and KStatusNotifierItem Support, the results are relevant as seen below:

image

However when sorting by anything else, the extension results are completely unrelated to the search term:

image

I've tried several other search terms as well, and the other sorting options.

Distro: fedora workstation Installation method: flatpak App version: 0.4.2

zleonov commented 1 year ago

I came here to create this JIRA. Let me add a little more context. First let me say this is a great extension and I use it all the time.

To begin with, a question: How does the Extension Manager implement search functionality? Does the Gnome Extensions website provide an API endpoint? Does the extension completely bypass the Gnome Extensions website?

I ask because on the one hand there are incongruencies between the website search functionality and this extension's search functionality. Yet they are both broken in similar ways.

Specifically: The Gnome Extension website and this extension both provide the following sorting options (assuming you enable unsupported extensions in this extension):

Gnome Extensions website Extension Manager Notes
Name Name Results are identical, not useful
Downloads Downloads Results are identical, sometimes useful
Popularity Popularity Results are identical, not useful
Relevance Recent Results are identical between the Relevance option on the website and the Recent option in this extension. This is the only search option that provides sensible results.
Recent N/A

I did a little more comparing and it seems the reason the results for options other than Relevance/Recent seem irrelevant is because the search is performed via an OR modifier applied for all the search terms, e.g. if you are searching for Hide Top Bar you'll get results for "Hide" OR "Top" OR "Bar" which are not very useful.

Poly2it commented 1 year ago

I am also experiencing this issue.

demirdegerli commented 1 year ago

Yes, popularity results should only be shown if there is nothing entered. Recent option should be default for searching.

mjakeman commented 7 months ago

This was fixed in v0.4.3 - it should be available just about everywhere.

Please report any further search problems - thanks!