<table><tr><td style="">broulik created this revision.<br />broulik added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />broulik requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D22888">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>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.<br />
Since the "relevance" of a <tt style="background: #ebebeb; font-size: 13px;">QueryMatch</tt> 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.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Searched for "quassel", got quassel application higher rated than my random sprint note file found by Baloo to contain the word quassel.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R112 Milou</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22888">https://phabricator.kde.org/D22888</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>lib/resultsmodel.cpp<br />
lib/resultsmodel.h<br />
lib/runnerresultsmodel.cpp<br />
lib/runnerresultsmodel.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>