Bug 344316 - baloo does not find directory names
Summary: baloo does not find directory names
Status: RESOLVED FIXED
Alias: None
Product: Baloo
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: 4.13
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 12:10 UTC by betlogbetlog
Modified: 2015-02-18 16:50 UTC (History)
0 users

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 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.