lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <>
Subject Re: Search for long titles - wildcard queries
Date Tue, 13 May 2008 23:28:52 GMT
On Saturday 10 May 2008 20:32:42 legrand thomas wrote:
>   I think I cannot use the WildcardQuery because the term shouldn't start
> with "*" of "?". Should I use a QueryParser ? How can I do it ?

WildcardQuery does permit a wildcard at the front, it's just much slower.

Also, QueryParser allows wildcards at the front, but you have to 
setAllowLeadingWildcard(true).  At the end of the day it's still creating a 
WildcardQuery though.


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

View raw message