Re: [Tracker] Tags, metadata and date fields



On Fri, 09 Apr 2010 09:23:38 -0400, Nikolaus Rath <Nikolaus rath org>
wrote:
Ivan Frade <ivan frade-Re5JQEeQqe8AvxtiuMwx3w 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.

Best,

   -Nikolaus



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