Hi jimmy,
El vie, 25-07-2008 a las 09:17 +0300, ext Urho Konttori escribió:
> ext Jimmy Huang wrote:
> > Jamie,
> >
> > I wrote a C client using the tracker_keywords_search() function in
> > libtracker, and I passed in an array of two words {"first", "second"}
> > and it returns results of either first or second, but not only those
> > with both. Is this a bug?
Well, It looks like the default operator is OR and not AND. The bug is
that there is no way to change it :)
Could you please open a feature request in the bugzilla (there are more
bugs also about our poor query language)? There were also a patch from
Carlos Garnacho (i think) that allowed OR and AND queries.
> > Can you show me the equivalent SQL query for searching the Sqlite3
> > database instead using keywords?
If you are writing a proof of concept or prototyping something is ok.
But obviously to access directly to the database is __not recommended___
at all.
All suggestions to improve and complete the API are welcome. I have
some ideas that will propose in the mailing list as soon as
indexer-split is ready to trunk :)
Regards,
Ivan
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list