D22888: Prefer categories with the query string visible in results
Kai Uwe Broulik
noreply at phabricator.kde.org
Fri Aug 2 08:39:37 BST 2019
broulik created this revision.
broulik added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.
REVISION SUMMARY
This logic was present in the old model and keeps e.g. Baloo file search results from getting higher priority than likely more useful application results with the given name. It only affects the order of categories, e.g. scoring "Applications" higher than "Documents" if such a match exists. The order of matches within a category is untouched and remains determined by the runner based on type and relevance.
Since the "relevance" of a `QueryMatch` is global and determined freely by the runners which don't know what other results might already be present, we have to resort to some fuzzy logic like this.
TEST PLAN
Searched for "quassel", got quassel application higher rated than my random sprint note file found by Baloo to contain the word quassel.
REPOSITORY
R112 Milou
REVISION DETAIL
https://phabricator.kde.org/D22888
AFFECTED FILES
lib/resultsmodel.cpp
lib/resultsmodel.h
lib/runnerresultsmodel.cpp
lib/runnerresultsmodel.h
To: broulik, #plasma
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190802/6132e205/attachment.html>
More information about the Plasma-devel
mailing list