Re: [Tracker] Indexing the content of java files



On Sat, 2007-11-03 at 14:40 +0100, Jos Dirksen wrote:
Nautilus defines the files as: text/x-java, and I also see trackerd
indexing the files if I start it from command line.

For instance if I only let trackerd index a directory with a single
file. I can see that it picks the file up correctly. 

mime is text/x-java
for /home/nl24167/java/sources/camel/camel-core/src/main/java/org/apache/camel/CamelTemplate.java
file extension is java
file /home/nl24167/java/sources/camel/camel-core/src/main/java/org/apache/camel/CamelTemplate.java is 
indexable 
file /home/nl24167/java/sources/camel/camel-core/src/main/java/org/apache/camel/CamelTemplate.java has 
fulltext 1 with service Development
Indexing /home/nl24167/java/sources/camel/camel-core/src/main/java/org/apache/camel/CamelTemplate.java with 
service Development and mime text/x-java (existing) 
0 files are pending with count 0
Flushing all words - total hits in cache is 3, total words 0
could not update word hit text - appending
could not update word hit text/x-java - appending

The class definition in this file is something like this: 

public class CamelTemplate<E extends Exchange> extends ServiceSupport
implements ProducerTemplate<E> {

So I expect that when I search for 'ServiceSupport' this file should
be returned as a hit, but it doesn't. The strange thing however is
that tracker-search does find two other files that have
'ServiceSupport' in it's content. 

It almost seems like it stopped indexing somewhere, or doesn't update
it's index any more.


can you try touching the file

if that fails I suggest do:

1) killall -9 trackerd
2) trackerd --reindex





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