https://bugs.kde.org/show_bug.cgi?id=407664

--- Comment #12 from Stefan Brüns <stefan.bru...@rwth-aachen.de> ---
Git commit 6dbc3212825b2ffc360fda65f0022be224d9a5a1 by Stefan Brüns.
Committed on 13/11/2023 at 21:41.
Pushed by bruns into branch 'kf5'.

[QueryTest] Add test case for terms folded to empty strings

The termgenerator removes leading, trailing and isolated punctuation
characters. While this is no problem for leading or trailing punctuation
as the normalized term is still non-empty, isolated punctuation ends up
as an empty string.

The matcher then tries to find e.g. "(content:'' OR filename:'')", which
returns not results, instead of the exptedted "everything". Unfortunately
it is non-trivial to remove such Terms.

For the prase test, this is not at problem, as it always sees the whole
phrase and can just skip the problematic part.
(cherry picked from commit c8d1b7cabcc810867f400e5ccfb96e41b03e0635)

M  +15   -0    autotests/integration/querytest.cpp

https://invent.kde.org/frameworks/baloo/-/commit/6dbc3212825b2ffc360fda65f0022be224d9a5a1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to