Re: [Tracker] Tags, metadata and date fields



Am Freitag, den 09.04.2010, 11:50 -0400 schrieb Nikolaus Rath:
Adrien Bustany <abustany-rDKQcyrBJuzYtjvyW6yDsg public gmane org> writes:
On Fri, 09 Apr 2010 09:23:38 -0400, Nikolaus Rath <Nikolaus-BTH8mxji4b0 public gmane org>
wrote:
Ivan Frade <ivan frade-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg public gmane org> writes:
Hi,

However, I wasn't really able to find any information on how to get
the
metadata into my index in the first place. Could you give me some
information where to start? Do I move the documents into a
tracker-watched folder and manually modify the database after the
documents have been indexed? Or do I explicitly ask tracker to add a
specific file with specific metadata to the index? Or do I add the
metadata as extended attributes of the file and put it in a watched
folder? Or something else entirely?


 Check ~/.config/tracker/tracker-miner-fs.cfg file to know/configure
what
directories is tracker watching. Either you move your files to any of
those
locations, or you add your documents path there.

 Wait for tracker to index that folder (tracker-status should show the
progress), and then run a query with:
[..]

That seems a little bit cumbersome to me. So my "Add to Archive" script
would have to move the file into the watcher directory, and then poll
tracker until the file has been indexed? Isn't there a way to instruct
tracker to "index this file and block until your're done"?

No, it'd be the other way around: your archive folder would be indexed
by Tracker, and your script wouldn't have to do anything more.

My script still has to add the custom metadata, doesn't it? And the way
understood you, I need the tracker-url of the document to add the
metadata. And the tracker-url is only available once the document is
actually in the index...

Interesting question. I still can't finish my program because of this.

Regards,
        Alexey




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