Bug 344316

Summary: baloo does not find directory names
Product: [Frameworks and Libraries] Baloo Reporter: betlogbetlog
Component: GeneralAssignee: Vishesh Handa <me>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.13   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description betlogbetlog 2015-02-18 12:10:13 UTC
Using ctrl-f in dolphin to baloo search mounted drives does not find directory names.
eg:
This folder exists:
/home/user/pictures/camera2/2013/2013-12-25--17.58.35_200mmf2.8_maroochydore/
But 'filename' or 'content' search for "maroochydore" yeilds nothing





Reproducible: Always

Steps to Reproduce:
1. dolphin
2. Ctrl-F
3. type partial name of a known directory

Actual Results:  
Files and contents of files can be found, but directory names currently can not.

Expected Results:  
If a directory contains the searched keyword then it should appear in the found results.

Notes: 
1) Machine is an Intel NUC, therefore the drives that I need to index are attached via a single USB3 drive bay, and mounted in fstab. 
eg:
UUID=*removed* /home/user/pictures/camera1 	ext4    defaults        	0       2
UUID=*removed* /home/user/pictures/camera2 	ext4    defaults        	0       2
etc
Comment 1 Vishesh Handa 2015-02-18 12:28:05 UTC
Fixed with Plasma 5.1

The problem is that names weren't properly split up in 4.13 (first release of Baloo). We could not split names by _, so the foldername '2013-12-25--17.58.35_200mmf2.8_maroochydore' would be searchable by '2013' or '12' or '25', but not by 'maroochydore' since it's in the middle.

With Plasma 5.1, we're doing this better.
Comment 2 betlogbetlog 2015-02-18 15:50:40 UTC
what are the currently valid separators?
"-" evidently... but what others?
Comment 3 Vishesh Handa 2015-02-18 16:43:31 UTC
With Plasma 5, we're using one of the standard unicode specifications (QTextBoundaryFinder) for text splitting (along with _). With KDE4, we used Xapian's internal splitting which used - . and some others. I cannot say without checking the code.
Comment 4 betlogbetlog 2015-02-18 16:50:54 UTC
Thanks.
I look forward to a fully functional baloo and krunner integration, but in the mean time it seems that kfind is a useful legacy option.