lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantos <>
Subject Re: Transforming german umlaute like ö,ä,ü,ß into oe, ae, ue, ss
Date Fri, 28 Nov 2008 12:02:05 GMT


I'm a newbie with Lucene and I started some testing with Lucene 2.2.0.
I developed my own Analyser and my own Filter based on examples found here,
that is:

public class DiacriticAnalyser extends GermanAnalyzer {

 public TokenStream tokenStream(String fieldName, Reader reader) { 
   TokenStream result = super.tokenStream(fieldName, reader);
   result = new ISOLatin1DiacriticFilter(result); 
   return result; 



public class ISOLatin1DiacriticFilter extends TokenFilter {

public final Token next() throws {
   final Token t =;
    if (t != null)
    return t;


What i don't understand is: isn't the call to endless
recursive, i mean the TokenStream class is abstract and the TokenFilter
class doesn't implement next()? And who calls next(), i just call the
constructor of ISOLatin1DiacriticFilter class.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message