lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: Fastest way to perform 'like' searches
Date Thu, 09 Aug 2007 07:33:01 GMT

Thanks Daniel, 

I understand how it can be done. The only things that bothers me is that expanding the "*"
might result in many phrases, and that in turn might imply a performance hit. I'll see what
the impact is,

Regards Ard

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

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