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: Fastest way to perform 'like' searches
Date Wed, 08 Aug 2007 18:02:39 GMT
On Wednesday 08 August 2007 10:28, Ard Schrijvers wrote:

> Does anybody know a more efficient way? A PhraseQuery might get me
> somewhere, isn't? 

No, you need to use MultiPhraseQuery, and you will need to first epxand the 
terms with the "*" yourself (e.g. using term enumeration).

> as a phrase is analyzed according some analyzer it might strip the 'the'
> as a stopword, implying that *oo bar qu* would also match, right?

Stopwords need to be removed everywhere, i.e. also from phrases, this way 
they generally work as expected.

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