Re: [Tracker] tracker as full text index/search tool for a large collection of pdf, ps, djvu, dvi documents?



Hi Meik!

El lun, 06-10-2008 a las 21:08 +0200, ext Meik Hellmund escribiÃ:
On Sun, 05 Oct 2008 23:15:09 +0300
Ivan Frade <ivan frade nokia com> wrote:

Great. I use now:

/usr/lib/tracker/filters/application/postscript_filter:
     #!/bin/sh
     nice -n19 ps2txt  "$1" "$2"

/usr/lib/tracker/filters/application/x-dvi_filter:
     #!/bin/sh
     nice -n19 catdvi -e 0   "$1" > "$2"

(after "apt-get install catdvi") 

We can add these filters in the svn and "catdvi" as optional dependency.
Great!

and it works fine for Postscript and Dvi. 
But Djvu is still not working:

I added "image/vnd.djvu"  to the "Mimes=.." line in the
[Documents] chapter in this file, but it didn't help.

I also did an "strace -f trackerd -R" and found that /usr/share/tracker/services/default.service
is never read by trackerd, only the /usr/share/tracker/services/*.metadata files are opened.

Any ideas?

 All these symptoms point to the same problem. Tracker uses the
default.service file to build the common.db database. If the database
already exists, tracker doesn't check if it is up to date. So, even when
you added the mimetype to the proper category, common.db has not been
rebuilded. 

Remove ~/.local/share/tracker/data/common.db and restart tracker. 


 - How about compressed files? The documentation mentions that .gz
   files are supported. What about .bz2? Is it possible to add a
filter for other compression methods?

Let me ask this question again. I have a lot of .ps.gz and .ps.bz2 files
and at the moment they are not indexed by tracker. Of course disk space is cheap nowadays and
I could uncompress them all. But what is tracker's expected behaviour? 

 I don't know how are handled (if they are) the compressed files in
tracker. I'll take a look.

 Good luck,

Ivan




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