It's a bug in 2.1, fixed by Doron Cohen http://issues.apache.org/jira/browse/LUCENE-813
Antony dontspamterry wrote:
Hi all, I was experimenting with queries using wildcard on an untokenized field and noticed that a query with both a starting and trailing wildcard, e.g. *abc*, gets parsed to the PrefixQuery *abc. I did enable the leading wildcard in the QueryParser to allow the query above to be parsed so I'm wondering is there any way to get the query parser to parse *abc* as a WildcardQuery and not a PrefixQuery, short of overriding the applicable query parser methods? I don't think the parser treats every query with a trailing wildcard as a PrefixQuery because when I tried, a*b*, it got parsed to a WildcardQuery. Thanks for any insight! -Terry
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]