Package org.opensearch.analysis.common
Class ScriptedConditionTokenFilterFactory
java.lang.Object
org.opensearch.index.AbstractIndexComponent
org.opensearch.index.analysis.AbstractTokenFilterFactory
org.opensearch.analysis.common.ScriptedConditionTokenFilterFactory
- All Implemented Interfaces:
TokenFilterFactory,IndexComponent
public class ScriptedConditionTokenFilterFactory extends AbstractTokenFilterFactory
A factory for a conditional token filter that only applies child filters if the underlying token
matches an
AnalysisPredicateScript-
Field Summary
Fields inherited from class org.opensearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger -
Method Summary
Modifier and Type Method Description org.apache.lucene.analysis.TokenStreamcreate(org.apache.lucene.analysis.TokenStream tokenStream)TokenFilterFactorygetChainAwareTokenFilterFactory(TokenizerFactory tokenizer, java.util.List<CharFilterFactory> charFilters, java.util.List<TokenFilterFactory> previousTokenFilters, java.util.function.Function<java.lang.String,TokenFilterFactory> allFilters)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter, getAnalysisMode, getSynonymFilter, normalize
-
Method Details
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream) -
getChainAwareTokenFilterFactory
public TokenFilterFactory getChainAwareTokenFilterFactory(TokenizerFactory tokenizer, java.util.List<CharFilterFactory> charFilters, java.util.List<TokenFilterFactory> previousTokenFilters, java.util.function.Function<java.lang.String,TokenFilterFactory> allFilters)
-