lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: search for a string which begins with a '$' character
Date Fri, 09 Jul 2010 18:57:09 GMT
> WhitespaceAnalyzer is case sensitive.  Is there a way
> to
> make it case insensitive?

You can build your custom analyzer using WhitespaceTokenizer + LowercaseFilter. Source code
of an existing analyzer will help you.

public TokenStream tokenStream(String fieldName, Reader reader) {
    WhitespaceTokenizer tokenStream = new WhitespaceTokenizer(matchVersion, reader);
    tokenStream = new LowerCaseFilter(result); 
    return result;
  }


      

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