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 Mon, 14 Apr 2008 19:13:50 GMT
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


Mime
View raw message