lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From entdeveloper <cameron.develo...@gmail.com>
Subject Re: PrefixQuery vs wildcardquery
Date Mon, 28 Sep 2009 17:23:23 GMT


John Seer wrote:
> 
> Hello,
> 
> Is there any benefit of using one or other for "start with query"?
> 
> Which one is faster?  
> 
> 
> Regards
> 

It seems that you've answered your own question. If you want a "start with
query", this is exactly what a PrefixQuery is for. WildcardQuery gives you
more flexibility, but if you don't need it, then PrefixQuery should get the
job done.
-- 
View this message in context: http://www.nabble.com/PrefixQuery-vs-wildcardquery-tp25649045p25649399.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