Re: [Tracker] Tags, metadata and date fields

Adrien Bustany <abustany-rDKQcyrBJuzYtjvyW6yDsg public gmane org> writes:
On Fri, 09 Apr 2010 09:23:38 -0400, Nikolaus Rath <Nikolaus-BTH8mxji4b0 public gmane org>
Ivan Frade <ivan frade-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg public gmane org> writes:

However, I wasn't really able to find any information on how to get
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
directories is tracker watching. Either you move your files to any of
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...



 ÂTime flies like an arrow, fruit flies like a Banana.Â

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

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