Bug 459148 - Items e.g. containing a minus or underscore are not found in some cases
Summary: Items e.g. containing a minus or underscore are not found in some cases
Status: RESOLVED DUPLICATE of bug 434589
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.97.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: baloo-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 09:55 UTC by Schlaefer
Modified: 2022-10-05 07:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***