lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From entdeveloper <>
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:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message