Re: [Tracker] Searching for Filnames with underscore



Hi hi Thomas,


thanks for the info. So this means I have to use space as separator in file names? Any possiblities to 
change that? I can understand it from a technical point of you but why is this restriction opposed on the 
user. There are enough arguments to not use spaces in filenames?

Kind of confused ;-)


The word breaking algorithm is not something applied only to filenames,
it is applied to all text parsed for FTS searching, and the same rules
apply to all the text, we don't have specific rules just for filenames.
So, if you want to really look for files with FTS using as search word
part of the filename, not the start of it, you'll need to use something
else as word separator (whitespace will do it; and also single dot,
which will always be forced as word separator, even if Unicode word
breaking rules don't say so).

My suggestion is to avoid thinking that FTS is just to look for
filenames :-) You can use FTS to look for specific text content in a
text file, or an album artist in a music file, or filenames with a given
extension...

See this page to get a rough idea of what FTS supports:
https://live.gnome.org/Tracker/Documentation/Examples/SPARQL/FTS

Cheers,

-- 
Aleksander




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]