Package org.opensearch.index.analysis
Class IcuNormalizerTokenFilterFactory
java.lang.Object
org.opensearch.index.AbstractIndexComponent
org.opensearch.index.analysis.AbstractTokenFilterFactory
org.opensearch.index.analysis.IcuNormalizerTokenFilterFactory
- All Implemented Interfaces:
NormalizingTokenFilterFactory,TokenFilterFactory,IndexComponent
public class IcuNormalizerTokenFilterFactory
extends AbstractTokenFilterFactory
implements NormalizingTokenFilterFactory
Uses the
ICUNormalizer2Filter to normalize tokens.
The name can be used to provide the type of normalization to perform.
The unicodeSetFilter attribute can be used to provide the UniCodeSet for filtering.
-
Field Summary
Fields inherited from class org.opensearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, loggerFields inherited from interface org.opensearch.index.analysis.TokenFilterFactory
IDENTITY_FILTER -
Constructor Summary
ConstructorsConstructorDescriptionIcuNormalizerTokenFilterFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.TokenStreamcreate(org.apache.lucene.analysis.TokenStream tokenStream) Methods inherited from class org.opensearch.index.analysis.AbstractTokenFilterFactory
nameMethods inherited from class org.opensearch.index.AbstractIndexComponent
getIndexSettings, indexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.index.analysis.NormalizingTokenFilterFactory
normalizeMethods inherited from interface org.opensearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter, getAnalysisMode, getChainAwareTokenFilterFactory, getSynonymFilter, name
-
Constructor Details
-
IcuNormalizerTokenFilterFactory
public IcuNormalizerTokenFilterFactory(IndexSettings indexSettings, Environment environment, String name, Settings settings)
-
-
Method Details
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream) - Specified by:
createin interfaceTokenFilterFactory
-