Package org.opensearch.index.analysis
Class IcuCollationTokenFilterFactory
- java.lang.Object
-
- org.opensearch.index.AbstractIndexComponent
-
- org.opensearch.index.analysis.AbstractTokenFilterFactory
-
- org.opensearch.index.analysis.IcuCollationTokenFilterFactory
-
- All Implemented Interfaces:
TokenFilterFactory,IndexComponent
public class IcuCollationTokenFilterFactory extends AbstractTokenFilterFactory
An ICU based collation token filter. There are two ways to configure collation:The first is simply specifying the locale (defaults to the default locale). The
languageparameter is the lowercase two-letter ISO-639 code. An additionalcountryandvariantcan be provided.The second option is to specify collation rules as defined in the Collation customization chapter in icu docs. The
rulesparameter can either embed the rules definition in the settings or refer to an external location (preferable located under theconfiglocation, relative to it).
-
-
Field Summary
-
Fields inherited from class org.opensearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
Fields inherited from interface org.opensearch.index.analysis.TokenFilterFactory
IDENTITY_FILTER
-
-
Constructor Summary
Constructors Constructor Description IcuCollationTokenFilterFactory(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.TokenStreamcreate(org.apache.lucene.analysis.TokenStream tokenStream)-
Methods inherited from class org.opensearch.index.analysis.AbstractTokenFilterFactory
name
-
Methods inherited from class org.opensearch.index.AbstractIndexComponent
getIndexSettings, index
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter, getAnalysisMode, getChainAwareTokenFilterFactory, getSynonymFilter, normalize
-
-
-
-
Constructor Detail
-
IcuCollationTokenFilterFactory
public IcuCollationTokenFilterFactory(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings)
-
-