Package org.opensearch.analysis.common
Class AnalysisPredicateScript
java.lang.Object
org.opensearch.analysis.common.AnalysisPredicateScript
public abstract class AnalysisPredicateScript
extends java.lang.Object
A predicate based on the current token in a TokenStream
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnalysisPredicateScript.Factorystatic classAnalysisPredicateScript.TokenEncapsulation of the state of the current token -
Field Summary
Fields Modifier and Type Field Description static ScriptContext<AnalysisPredicateScript.Factory>CONTEXTstatic java.lang.String[]PARAMETERS -
Constructor Summary
Constructors Constructor Description AnalysisPredicateScript() -
Method Summary
Modifier and Type Method Description abstract booleanexecute(AnalysisPredicateScript.Token token)Returnstrueif the current term matches the predicate
-
Field Details
-
PARAMETERS
public static final java.lang.String[] PARAMETERS -
CONTEXT
-
-
Constructor Details
-
AnalysisPredicateScript
public AnalysisPredicateScript()
-
-
Method Details
-
execute
Returnstrueif the current term matches the predicate
-