lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: Wildcard queries don't work on untokenized fields (Lucene 2.2.0)
Date Thu, 12 Jul 2007 10:34:56 GMT
On the QueryParser:

  /**
   * Whether terms of wildcard, prefix, fuzzy and range queries are to 
be automatically
   * lower-cased or not.  Default is <code>true</code>.
   */
  public void setLowercaseExpandedTerms(boolean lowercaseExpandedTerms) {
    this.lowercaseExpandedTerms = lowercaseExpandedTerms;
  }

- Mark

Michael Böckling wrote:
> Hi!
>
> I just discovered that it is not possible to search in untokenized fields
> when using a wildcard query.
>
> The query 
>
> code:KP00* becomes code:kp00*
>
> in its parsed form when it should really be "code:KP00*", as tested in Luke
> using a whitespace analyzer. When omitting the wildcard character *, the
> parsed query reads correctly as "code:KP00".
>
> Is this a bug or a "feature"?
>
> Thanks for any help!
>
>
> Michael
>
>
>   

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