Re: [Tracker] Some questions
- From: Ivan Frade <ivan frade gmail com>
- To: billy shears <billy shears gmx com>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Some questions
- Date: Fri, 17 Apr 2009 10:57:54 +0300
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! ...
Here is the query I'm using:
<rdfq:Condition>
<rdfq:or>
<rdfq:inSet>
<rdfq:Property name='User:Keywords' />
<rdf:String>KEYWORD</rdf:String>
</rdfq:inSet>
<rdfq:contains>
<rdfq:Property name='File:NameDelimited' />
<rdf:String>KEYWORD</rdf:String>
</rdfq:contains>
</rdfq:or>
</rdfq:Condition>
This query looks ok (It should work)
* I gave up with that rdf query and I've tried instead to specify a full
text search parameter in tracker_search_query (the parameter called
search_text), however it seems that it does not search in the tags (for
example searching for "foobar" does not return files tagged "foobar").
I've noticed that tracker-search-tool doesn't too, since when clicking
on a tag it searches for that tag returning no results I guess this is a
bug.
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).
* in tracker_search_query the search_text and sort_fields parameters
don't seem to work well together, when specifying both I always get zero
matches. specifying only search text, only sort_fields, or sort_fields
together with an rdf query works as expected.
We need more complete examples about this. You can open a bug about it.
that's all I wanted to ask for now, I hope I could explain well my
questions.
Thanks for all this information, we will take a look... something seems to be broken.
Regards,
Ivan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]