[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Question about discover sortByRelevancy
From: Nate Graham <nate () kde ! org>
Date: 2020-04-08 16:07:50
Message-ID: aa762af1-0f54-64b9-b7a2-0ec28baf872e () kde ! org
[Download RAW message or body]
See https://bugs.kde.org/show_bug.cgi?id=407588. This was supposed to
have been fixed in AppStream itself, at least for apps. And I can
confirm the fix with the latest version of APpStream--again, at least
for apps.
However I can see that the problem is still present for non-apps, such
as the "Titanium" GTK2 theme, where I can reproduce the issue, as you
indicate. Looks like the sorting may need to be adjusted in the KNS
backend specifically, or elsein the KNewStuff framework itself.
Nate
On 4/8/20 3:10 AM, S. Champailler wrote:
> Hello Aleix, hello KDE dev's, <mailto:aleixpol@kde.org>
>
> I wanted to modify Discover a bit. Here's the thing :
>
> In KDE Neon, I run Discover. I search for a package named "Titanium".
> The result list has Titanium and some other packages in it (which is
> fine). However, the first item in that list is not named Titanium at all
> (I guess it's a match based, say, on the description).
>
> I'd like to modify the sort order so that if a package has an exact name
> match, then it appears on top of the search results.
>
> I've already looked at the code (and built it !)) and seen that the
> current sort is determined by the m_sortByRelevancy boolean. It seems to
> me that when that boolean is True, then no specific sort happens; not
> 100% sure.
>
> Before going any further, I'd like to make sure my idea doesn't
> contradict some of the initial design of Discover. So, does it ?
>
> Best regards,
>
> Stéphane
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic