lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: Search for phrases
Date Tue, 15 Apr 2008 18:09:03 GMT
On Dienstag, 15. April 2008, palexv wrote:

> I have not tokenized phrases in index.
> What query should I use?
> Simple TermQuery does not work.

Probably PhraseQuery with an argument like "java dev" (no asterisk).

> If I try to use QueryParser , what analyzer should I use?

Probably KeywordAnalyzer. Please see the instructions in the FAQ that 
describe how to debug search problems if it doesn't work.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message