On Thu, 2012-10-04 at 16:40 +0100, Martyn Russell wrote: > 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?
grep Vaccaro /home/awilliam/Documents/Development/PHP/jsonRPCClient.php Copyright 2007 Sergio Vaccaro <[email protected]> > 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). tracker-sparql -q "select ?urn nie:url(?urn) nie:plainTextContent(?urn) where { ?urn a nfo:FileDataObject ; fts:match 'Vaccaro' }" Results: None _______________________________________________ tracker-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/tracker-list
