Re: [Tracker] probem with finding filenames



gebi fastmail fm wrote:
please have a look:

Hi :)

gebi kepler:~$ touch ayxcvbn.txt
gebi kepler:~$ tracker-search ayxcv

-> no results when searching for a partial file-name ?!

gebi kepler:~$ tracker-search ayxcvbn
/home/gebi/ayxcvbn.txt

fine -- works with a full file-name without extension.

now make a new filename - the same as above but with an underscore:

gebi kepler:~$ touch ayxcvbn_go.txt
gebi kepler:~$ tracker-search ayxcvbn
/home/gebi/ayxcvbn.txt
/home/gebi/ayxcvbn_go.txt

now I got all results !

gebi kepler:~$ tracker-search ayxcvb

but for a partial filename -> no results but for 

a "full" part of a filename it works:

gebi kepler:~$ tracker-search ayxcvbn
/home/gebi/ayxcvbn.txt
/home/gebi/ayxcvbn_go.txt


any hints ?
I think searching for filenames should have a similar behavior as locate
which searchs for  "*file*"
in this way it could be an "always up to date replacement" for locate
and an essential behavior when used in a filemanager.

I had this exact problem the other day.
Partial matches for prefixes or suffixes are currently not supported.

What is indexed there is "home", "gebi", "ayxcvbn", "go", there is no
partial matching for any of those because doing so requires a full table
query (i.e. all entries need to be looked up) which is expensive.

I believe there is work ongoing to resolve this.

-- 
Regards,
Martyn



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