lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Re: "Contains" query parsed to PrefixQuery
Date Tue, 12 Jun 2007 05:40:11 GMT
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message