tracker does not index .php files content

Bug #675668 reported by pled
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tracker (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: tracker

Hi,
I am using Ubuntu 10.10 and Tracker 0.8.17, and realized that Tracker does not index .php files content (it is useful to me when searching for the place a function name is used).

Activating the tracker-extract log, I can read :
>>> Could not find any extractors to handle metadata type (mime: application/x-php) <<<

In /usr/lib/tracker-0.8/extract-modules directory is a list of extractors modules, like : libextract-html.so, libextract-text.so, libextract-pdf.so, etc... but there is nothing specific for php files.

Does application/x-php files need a specific extractor ?
I was expecting that .php files, because they contain plain-text (PHP script text), would be indexed as well.

Couldn't the libextract-text.so applies to such mime types as well ?
I can see in libtracker-extract page on the wiki (http://library.gnome.org/devel/libtracker-extract/unstable/libtracker-extract-How-to-use-libtracker-extract.html) that several MIME types can be defined for the same lib.

Or is it required to create a new specific extractor ? (which is out of my knowledge)

Thank you.

Revision history for this message
pled (pledisque) wrote :

More generaly :
The idea is more about which files types Tracker should index : to me, php files (like many others source code extensions), should be indexed because they contain text.

I am not sure if adding such MIME types to libextract-text.so would be enough, but if yes, why not doing it ? I don't see any reason to NOT do it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.