Hi all,

I am indexing the filepath with the below:

 Document doc = new Document();
        doc.add(Field.UnIndexed("path", f.getAbsolutePath()));

I then try to run the following after building the index:

 this.query =
QueryParser.parse(file.getAbsolutePath(),"path",this.analyzer);
        Hits hits = this.searcher.search(this.query);

It returns zero hits?!?

What am I doing wrong?

Any help would be appreciated.

Thanks,

Rob

Reply via email to