http://www.jguru.com/faq/view.jsp?EID=538308

--- Rob Outar <[EMAIL PROTECTED]> wrote:
> 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
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@;jakarta.apache.org>

Reply via email to