Re: [Tracker] searchfs



On 28/06/11 12:41, Adrien Bustany wrote:
On Wed, 22 Jun 2011 16:53:23 +0200, Mariusz wrote:
Hi.
Recently I've created simple FUSE filesystem, presenting search
results as symlinks to matching files:

https://mrk-sandbox.googlecode.com/hg/searchfs/searchfs.py

Usage:
Mount FUSE filesystem at some mountpoint, /search for example (rw
access to this dir is required)

python searchfs /search

and perform some query:

cd /search/some/search/terms/
ls

This code is proof of concept only, real program should use tracker
api instead of 'tracker-search' call probably :)

Hello Marius

if you use pygi, you can use libtracker-sparql directly from python.
That should be way faster than calling tracker-search

There are even examples in the code base here:

  examples/introspection/python/*

--
Regards,
Martyn

Founder and CEO of Lanedo GmbH.



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