lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dontspamterry <dontspamte...@yahoo.com>
Subject Re: "Contains" query parsed to PrefixQuery
Date Tue, 12 Jun 2007 00:16:02 GMT

I'm using 2.1.0 and I'm calling setAllowLeadingWildcard(true) first on my
QueryParser instance. I'm using a PerFieldAnalyzerWrapper where the field of
interest uses the WhiteSpaceAnalyzer.

-Terry


hossman_lucene wrote:
> 
> 
> : 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
> 
> are you sure you called setAllowLeadingWildcard(true) first?
> 
> Are you using using 1.9 or earlier ... if so are you calling the
> static parse(String,String,Analyzer) instance? it doesn't know anything
> about hte other settings you can set on instances of QueryParser.
> 
> 
> -Hoss
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%22Contains%22-query-parsed-to-PrefixQuery-tf3904234.html#a11071008
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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