lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: PrefixQuery vs wildcardquery
Date Mon, 28 Sep 2009 17:06:57 GMT
John Seer wrote:
> Hello,
> Is there any benefit of using one or other for "start with query"?
> Which one is faster?  
> Regards
Prefix query is a bit more efficient - not sure what it turns into
realworld, but prefix just checks if the term's start with the prefix -
wildcard has a bit more complicated check to do (there could be a
wildcard anywhere in the term that must be checked for). I'd be
surprised if it was a huge difference, but if there are a lot of terms
to check, it could.

- Mark

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

View raw message