Re: [Tracker] tracker-search-tool does not print any result



On Tue, 2010-02-09 at 23:44 +0100, Laurent Aguerreche wrote:
Hi!

Tracker-search-tool does not print any result since some weeks (I use
the Git master branch). According to the git logs, some work happened on
URI/URL.

For TST, I turned the line #84 in tracker-query.gs into:
query = "SELECT ?s nie:url(?s) WHERE { ?s fts:match \"%s\". ?s a %s }
limit 100 ".printf (SearchTerms, cat)

I'll leave this for Jamie who afaik maintains TST.

So I am again able to get results. I see however duplicated items for
files I use to generate often (indeed some LaTeX index files), but
perhaps my modification of the query is wrong.

In addition, tracker-search does not return useful results for a user
(only "urn:uuid" things except if the user looks for a particular type
of file). But perhaps tracker-search is no more targeted to users but
scripts?

We have recently changed the subject of file resources into anonymous
nodes, and you indeed have to use nie:url (?file) as function property
to get a more useful URL string pointing to the file (if what you are
looking for are file resources).

For tracker-search you can use -f to make it print the URL too


-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be




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