[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Question about discover sortByRelevancy
From: "S. Champailler" <schampailler () skynet ! be>
Date: 2020-04-08 9:10:17
Message-ID: 1246599855.45729.1586337017075 () webmail ! appsuite ! proximus ! be
[Download RAW message or body]
------=_Part_45728_969727997.1586337017073
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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
------=_Part_45728_969727997.1586337017073
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<a href="mailto:aleixpol@kde.org">Hello Aleix, hello KDE dev's,</a>
<br>
</div>
<div>
<br>
</div>
<div>
I wanted to modify Discover a bit. Here's the thing :
<br>
</div>
<div>
<br>
</div>
<div>
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). <br>
</div>
<div>
<br>
</div>
<div>
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. <br>
</div>
<div>
<br>
</div>
<div>
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. <br>
</div>
<div>
<br>
</div>
<div>
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 ? <br>
</div>
<div>
<br>
</div>
<div>
Best regards,
</div>
<div>
<br>
</div>
<div>
Stéphane
<br>
</div>
</body>
</html>
------=_Part_45728_969727997.1586337017073--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic