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. Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]