lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From palexv <pal...@gmail.com>
Subject Re: Search for phrases
Date Tue, 15 Apr 2008 06:25:09 GMT

I have not tokenized phrases in index.
What query should I use?
Simple TermQuery does not work.
If I try to use QueryParser , what analyzer should I use?



Daniel Naber-10 wrote:
> 
> On Montag, 14. April 2008, palexv wrote:
> 
>> For example I need to search for "java de*" and recieve "java
>> developers", "java development", "developed by java" etc.
> 
> If your text is tokenized, this is not supported by QueryParser but you
> can 
> create such queries using MultiPhraseQuery. If you don't tokenize a text 
> like "java development" at whitespace characters, it's just like a single 
> term for Lucene. A query like "java de*" should work then, just make sure 
> you don't tokenize the search query either.
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Search-for-phrases-tp16678104p16695864.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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