Re: [Tracker] Some questions



On Fri, 2009-04-17 at 10:57 +0300, Ivan Frade wrote:
Hi!

        * I wanted to search for files which path or name contains a
        given
        keyword (not only for full word, for example searching for
        trac should
        return files like /home/user/tracker
        or /home/user/tracker.cfg). I did
        this successfully with tracker_search_query, but after that I
        wanted to
        search that keyword in tags too, and I couldn't manage to make
        it work.

You have exactly that behavior in the full text search! ...

thank you for your reply.

here (ubuntu 9.04 with tracker 0.6.93) when I search for a word I get
only exact matches, it doesn't search for substrings in words (for
example searching for "foo" I get only results with the word "foo"
inside file path, name and content, but not files with the word
"foobar")


 Yes, this can be the reason for all your problems. It looks like the
tags are not included in the QDBM file. If you are using the source
code, check the utils/qdbm directory. There we have two small programs
to inspect the contents of the QDBM files. Use them with your
~/.cache/tracker/file-index.db to verify if the tags are there.

 I am testing it here, and it looks like tracker-search doesn't find
results on keywords. (the tags are in the DB, though). 


same here, the tags are in the database but tracker-search does not find
them, the only way to search for the tags is "tracker-tag -s TAG".
I remember that with a previous version of tracker (maybe 0.6.6?)
tracker-search-tool could find the tags correctly.








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