lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Outar" <rou...@ideorlando.org>
Subject RE: Error when trying to match file path
Date Thu, 24 Oct 2002 12:10:27 GMT
Thanks for the reply, but I am already using a standard analyzer:

 Analyzer analyzer =new StandardAnalyzer();

The path is being stored as a string so I do not know why I cannot find a
match when I used the path as a query?  Do I need to phrase the query
differently?

QueryParser.parse(file.getAbsolutePath(),"path",this.analyzer);

Let me know.

Thanks,

Rob


-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
Sent: Wednesday, October 23, 2002 5:54 PM
To: Lucene Users List
Subject: Re: Error when trying to match file path


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

--- Rob Outar <routar@ideorlando.org> 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>


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


Mime
View raw message