ISOLatin1AccentFilter
insteadpublic class ISOLatin1AccentFilter
extends org.apache.lucene.analysis.TokenFilter
implements org.apache.avalon.framework.logger.LogEnabled
For example, the letter 'é' will be converted to 'e'.
This filter does'nt change the character case. If one wants to lowercase letters, it should also use another filter.
Constructor and Description |
---|
ISOLatin1AccentFilter(org.apache.lucene.analysis.TokenStream input)
Deprecated.
Builds a new filter
|
Modifier and Type | Method and Description |
---|---|
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Deprecated.
Set's the super.getLog()
|
org.apache.lucene.analysis.Token |
next()
Deprecated.
Transform ISOLatin1 accented characters to their unaccented counterparts.
|
static java.lang.String |
removeAccents(java.lang.String s)
Deprecated.
Removes accented characters from a string
|
void |
setUp(org.apache.lucene.analysis.TokenStream in)
Deprecated.
Builds a filter from a token stream.
|
public ISOLatin1AccentFilter(org.apache.lucene.analysis.TokenStream input)
input
- public void setUp(org.apache.lucene.analysis.TokenStream in)
in
- The input token stream.public final org.apache.lucene.analysis.Token next() throws java.io.IOException
next
in class org.apache.lucene.analysis.TokenStream
java.io.IOException
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
logger
- The super.getLog() to use.public static java.lang.String removeAccents(java.lang.String s)
s
- The string to analyzeCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.