tracker does not index .php file content

Asked by pled

Hi,
I am using Ubuntu 10.10 and Tracker 0.8.17, and realized that Tracker does not index .php files content (e.g. 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...
So I guess that for each mime type, you need a specific extractor. Is it correct ?

I was expecting that .php files, because they contain plain-text (PHP script text), would be indexed as well.

Is it the expected behaviour ? Couldn't the libextract-text.so applies to such mime types as well ?
Or is it required to create a new specific extractor ? (which is out of my knowledge)

Thank you.

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu tracker Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
K Wong (wongo888) said :
#1

Have you considered using Ack instead? It was designed specifically for programmers.

http://betterthangrep.com/

Revision history for this message
pled (pledisque) said :
#2

Hi, I did a try and it looks very powerfull ! do I really need an index then ? Thanks for the link.
But my idea is more about which files types Tracker should index : to me, these a text files (like many others source code extensions), and they should be indexed.
I created a bug #675668, let see how it goes !

Can you help with this problem?

Provide an answer of your own, or ask pled for more information if necessary.

To post a message you must log in.