Bug 258693

Summary: Nepomuk search box in dolphin doesn't understand a leading *-wildcard
Product: [Unmaintained] nepomuk Reporter: Janet <bugzilla>
Component: generalAssignee: Sebastian Trueg <sebastian>
Status: RESOLVED FIXED    
Severity: normal CC: hr.denzler
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Janet 2010-12-03 15:45:08 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

Dolphin's Nepomuk search box only understands trailing wildcards, not leading ones. When I search for "foo*" it finds "foobar". When I search for "*bar" it doesn't find "foobar".

Reproducible: Always
Comment 1 Hans-Rudi Denzler 2010-12-04 18:51:44 UTC
Seems to be fixed in KDE: 4.5.80 (4.6 Beta1)
Search for '*ast' finds:
yast
5.Invano_Alvaro_ti_celasti_al_mondo...mp3
Hoher Kasten.jpg

'ast' finds the same files.
'ast*png' finds:
yast Monitor.png
Comment 2 Sebastian Trueg 2011-01-05 15:22:49 UTC
SVN commit 1212019 by trueg:

Use a regex filter instead of bif:contains if wildcards are used without the necessary leading chars.

BUG: 258693

 M  +7 -19     query/comparisonterm.cpp  
 M  +46 -13    query/literalterm.cpp  
 M  +1 -2      query/literalterm_p.h  
 M  +22 -0     test/querytest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1212019