[SearchStore] Allow querying exact matches for non-properties
ClosedPublic

Authored by bruns on Apr 17 2020, 7:33 PM.

Details

Summary

Exact matches were only possible for prefixed properties, e.g.
filename=test or tag=test, but content matches were always
prefix queries. Allow to control the query type, i.e. content=test
(exact) or content:test (prefix).

Test Plan

$> echo "test" > doc1.txt
$> echo "testing" > doc2.txt
$> baloosearch content:test -> doc1, doc2
$> baloosearch content=test -> doc1
$> baloosearch content=testing -> doc2

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Apr 17 2020, 7:33 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptApr 17 2020, 7:33 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Apr 17 2020, 7:33 PM
ngraham accepted this revision.Apr 17 2020, 8:08 PM
This revision is now accepted and ready to land.Apr 17 2020, 8:08 PM
This revision was automatically updated to reflect the committed changes.