Bug 475844 - Does not find GIMP when searching for "gimp"
Summary: Does not find GIMP when searching for "gimp"
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2023-10-19 20:02 UTC by Nate Graham
Modified: 2023-11-03 15:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2023-10-19 20:02:33 UTC
Plasma 6 git master, Wayland.

When searching for "gimp", Discover finds some GIMP plugins but not GIMP. See attached screenshot.

However `appstreamcli search gimp` finds it, as well as a lot more stuff:

appstreamcli search gimp
Identifier: org.gimp.GIMP.Plugin.Lensfun [addon]
Name: GimpLensfun
Summary: GimpLensfun is a Gimp plugin to correct lens distortion using the lensfun library and database.
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.Lensfun/x86_64/2-3.36
Homepage: https://seebk.github.io/GIMP-Lensfun/
---
Identifier: org.gimp.GIMP.Manual [addon]
Name: GIMP User Manual
Summary: GIMP User Manual
Bundle: flatpak:runtime/org.gimp.GIMP.Manual/x86_64/2.10
Homepage: https://gimp.org/
---
Identifier: gimp-data-extras [addon]
Name: Extra files for GIMP
Summary: Patterns, gradients, and other extra files for GIMP
Homepage: https://www.gimp.org/
---
Identifier: org.gimp.GIMP.Plugin.Resynthesizer [addon]
Name: Resynthesizer
Summary: Set of GIMP plug-ins that heal (in-paint), synthesize texture, theme an image, and more
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.Resynthesizer/x86_64/2-3.36
Homepage: http://logarithmic.net/pfh/resynthesizer
---
Identifier: org.gimp.GIMP.Plugin.BIMP [addon]
Name: BIMP
Summary: 
  Batch Image Manipulation Program, a GIMP plugin to apply a set of manipulations to an entire
  group of images!
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.BIMP/x86_64/2-3.36
Homepage: https://alessandrofrancesconi.it/projects/bimp/
---
Identifier: org.gimp.GIMP.Plugin.Fourier [addon]
Name: Fourier
Summary: A simple GIMP plug-in to do fourier transform on your image.
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.Fourier/x86_64/2-3.36
Homepage: https://www.lprp.fr/gimp_plugin_en/
---
Identifier: org.gimp.GIMP [desktop-application]
Name: GNU Image Manipulation Program
Summary: Create images and edit photographs
Bundle: flatpak:app/org.gimp.GIMP/x86_64/beta
Homepage: https://www.gimp.org/
Icon: org.gimp.GIMP.png
---
Identifier: org.gimp.GIMP [desktop-application]
Name: GNU Image Manipulation Program
Summary: Create images and edit photographs
Bundle: flatpak:app/org.gimp.GIMP/x86_64/stable
Homepage: https://www.gimp.org/
Icon: org.gimp.GIMP.png
---
Identifier: org.gimp.GIMP [desktop-application]
Name: GNU Image Manipulation Program
Summary: Create images and edit photographs
Homepage: https://www.gimp.org/
Icon: gimp
---
Identifier: org.gimp.GIMP.Plugin.FocusBlur [addon]
Name: FocusBlur
Summary: Focus Blur plug-in crete a blurring effect similar to Depth of Field.
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.FocusBlur/x86_64/2-3.36
Homepage: https://github.com/JMoerman/gimp-focusblur-plugin
---
Identifier: org.gimp.GIMP.Plugin.GMic [addon]
Name: G'MIC
Summary: GREYC's Magic for Image Computing
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.GMic/x86_64/2-3.36
Homepage: https://gmic.eu/
---
Identifier: org.gimp.GIMP.Plugin.GMic [addon]
Name: G'MIC
Summary: GREYC's Magic for Image Computing
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.GMic/x86_64/3
Homepage: https://gmic.eu/
---
Identifier: org.gimp.GIMP.Plugin.LiquidRescale [addon]
Name: LiquidRescale
Summary: 
  LiquidRescale plugin to resize pictures non uniformly while preserving their features, i.e.
  avoiding distortion of the important parts.
Bundle: flatpak:runtime/org.gimp.GIMP.Plugin.LiquidRescale/x86_64/2-3.36
Homepage: http://liquidrescale.wikidot.com/
---
Identifier: org.glimpse_editor.Glimpse [desktop-application]
Name: Glimpse
Summary: Create images and edit photographs
Bundle: flatpak:app/org.glimpse_editor.Glimpse/x86_64/beta
Homepage: https://glimpse-editor.github.io
Icon: org.glimpse_editor.Glimpse.png
---
Identifier: org.gabmus.swatch [desktop-application]
Name: Swatch
Summary: Color palette manager
Bundle: flatpak:app/org.gabmus.swatch/x86_64/stable
Homepage: https://swatch.gabmus.org
Icon: org.gabmus.swatch.png
---
Identifier: com.github.unrud.djpdf [desktop-application]
Name: Scans to PDF
Summary: Create small, searchable PDFs from scanned documents
Bundle: flatpak:app/com.github.unrud.djpdf/x86_64/stable
Homepage: https://github.com/Unrud/djpdf
Icon: com.github.unrud.djpdf.png
Comment 1 Marco Martin 2023-11-03 15:52:03 UTC
Git commit 786243247a9b661c3fdc910df5cc8d5250267f1e by Marco Martin.
Committed on 03/11/2023 at 16:51.
Pushed by mart into branch 'master'.

Relevance sorting heuristics for search

Search also in appstreamId(): weird but only way to make gimp come up
when searching for gimp, there is also appstream searchTokens but they
are abused and lead to a lot of garbage results.

Do a new sortRole default when there is a search. This relevance role
combines:

* rating
* a measure based on The Levenshtein distance between search string and
  app name
* an exact match with the name or a sub-word of the name

It makes sortings much more "expected" than any of the other sortings.
Related: bug 399502, bug 469026
FIXED-IN: 6.0

![image](/uploads/05fae0a2b90bebb70f3aa6da78e04c4e/image.png)

M  +26   -2    discover/qml/ApplicationsListPage.qml
M  +6    -2    libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
M  +87   -38   libdiscover/resources/ResourcesProxyModel.cpp
M  +2    -10   libdiscover/resources/ResourcesProxyModel.h

https://invent.kde.org/plasma/discover/-/commit/786243247a9b661c3fdc910df5cc8d5250267f1e