lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <>
Subject Re: Searching for a path
Date Fri, 29 Oct 2004 06:46:54 GMT
Bill Tschumy writes:
> I have tried that and it doesn't work either.  I have also tried using 
> a PhraseQuery rather than TermQuery.
How did you create the phrase query?
You have to analyze the string with the same analyzer you used during
indexing and add all created tokens. Given that the analyzer creates
more than one token a TermQuery won't work.
The fakt, that you needed the quotes in query parser, indicates that this
is the case.

Did you look at the serialized form of the query created by query parser
and your attempts? That is used query.toString("some field") to see
what's going on?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message