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: Removing diacritics with ISOLatin1AccentFilter
Date Fri, 24 Jul 2009 10:25:38 GMT

Or alternatively:

String test = "HÄllo HÄllo HÄllo HÄllo HÄllo";

ISOLatin1AccentFilter filter = new ISOLatin1AccentFilter(new
                KeywordTokenizer(new StringReader(test)));

    final Token reusableToken = new Token();
    Token nextToken;
        
    if ((nextToken = filter.next(reusableToken)) != null)
         System.out.print(nextToken.term());
        
    filter.close();


      

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