Bug 459148

Summary: Items e.g. containing a minus or underscore are not found in some cases
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Schlaefer <openmail+kde>
Component: generalAssignee: baloo-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: tagwerk19
Priority: NOR    
Version: 5.97.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Schlaefer 2022-09-15 09:55:42 UTC
It seems that some characters like underscore or minus create word boundaries that makes it impossible to search for some types of partial string crossing that boundary.   

STEPS TO REPRODUCE
1. Create test files

echo "text" > "aaaa bbbb cccc.txt"
echo "text" > "aaaa-bbbb-cccc.txt"
echo "text" > "aaaa_bbbb_cccc.txt"

2. Search with a partial search term not bordering _ or -

baloosearch "aaaa-bb"
baloosearch "aaaa_bb"

OBSERVED RESULT

No search results are found.

EXPECTED RESULT

The appropriate items should be found.


SOFTWARE/OS VERSIONS
Operating System: NixOS 22.11
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

Searching for baloosearch "aaaa bb" shows all the result, spaced and connected with - or _.
Comment 2 tagwerk19 2022-10-03 15:46:59 UTC
It's clear that this happens, confirming. 
Will flag as a duplicate of Bug 434589
Comment 3 tagwerk19 2022-10-05 07:24:33 UTC

*** This bug has been marked as a duplicate of bug 434589 ***