Re: [Tracker] It doesn't index PHP files



On 04/10/12 14:50, Adam Tauno Williams wrote:
On Thu, 2012-10-04 at 14:37 +0100, Martyn Russell wrote:
What does tracker-extract report when you run it now?

....
Extracting...
   Using /usr/lib64/tracker-0.14/extract-modules/libextract-text.so...
   Starting to read
'file:///home/awilliam/Documents/Development/PHP/jsonRPCClient.php' up
to 1048576 bytes...
   Read 3977 bytes from file, 1044599 bytes remaining until configured
threshold is reached
Done (2 items)
...
SPARQL item:
--
  a nfo:PlainTextDocument ;
         nie:plainTextContent "<?php\n/*\ ......

And the word you're searching for is in that block of text?

You could also use:

tracker-sparql -q "select ?urn nie:url(?urn) nie:plainTextContent(?urn) where { ?urn a nfo:FileDataObject ; fts:match 'Vaccaro' }"

It *should* return the URL of the file you expect it to be in. If it doesn't either:

a) the file wasn't indexed yet properly.
b) FTS didn't work as expected on that file.

I would guess at this stage the former is the case (a).

--
Regards,
Martyn

Founder and CEO of Lanedo GmbH.



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