Diffusion Baloo e1045c4f7891

Fix searches for rating 10 (5 stars)

Authored by bruns on Nov 30 2018, 10:48 PM.

Description

Fix searches for rating 10 (5 stars)

Summary:
The comparator callback/lambda used a string comparision, which returned
the wrong documents, as "2" > "10", and "10" < "9", i.e. selecting the
"Highest rating" in dolphin returned all documents with a rating of 2
or higher.

Convert the numeric suffix of the rating term ("R2", "R10", ...) to
an integer value and use it for comparision.

BUG: 357960

Reviewers: Baloo, Frameworks, ngraham, poboiko, mgallien

Reviewed By: Baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D17272

Details

Committed
brunsDec 1 2018, 1:48 PM
Reviewer
Baloo
Differential Revision
D17272: Fix searches for rating 10 (5 stars)
Parents
R293:619547cbfefe: Remove extra spaces from Debug output, insert delimiters between fields
Branches
Unknown
Tags
Unknown