Class MatchOperator
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<Expression>
org.elasticsearch.xpack.esql.core.expression.Expression
org.elasticsearch.xpack.esql.core.expression.function.Function
org.elasticsearch.xpack.esql.expression.function.fulltext.FullTextFunction
org.elasticsearch.xpack.esql.expression.function.fulltext.Match
org.elasticsearch.xpack.esql.expression.function.fulltext.MatchOperator
- All Implemented Interfaces:
NamedWriteable,Writeable,PostAnalysisPlanVerificationAware,PostOptimizationVerificationAware,TranslationAware,Resolvable,EvaluatorMapper,OptionalArgument,ExpressionScoreMapper
This class performs a
MatchQuery using an operator.
This is used as a convenience for generating documentation and for error message purposes - it’s a way to represent
the match operator in the function syntax.
Serialization is provided as a way to pass the corresponding tests - serialization must be done to a Match class.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
Expression.TypeResolutionNested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.evaluator.mapper.EvaluatorMapper
EvaluatorMapper.ToEvaluatorNested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.score.ExpressionScoreMapper
ExpressionScoreMapper.ToScorerNested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.capabilities.TranslationAware
TranslationAware.FinishedTranslatable, TranslationAware.SingleValueTranslationAware, TranslationAware.TranslatableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.xpack.esql.expression.function.fulltext.Match
ALLOWED_OPTIONS, ENTRY, field, FIELD_DATA_TYPES, QUERY_DATA_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUsed to differentiate error messages between functions and operatorsprotected NodeInfo<? extends Expression> info()replaceChildren(List<Expression> newChildren) replaceQueryBuilder(QueryBuilder queryBuilder) Methods inherited from class org.elasticsearch.xpack.esql.expression.function.fulltext.Match
equals, field, getWriteableName, hashCode, options, postAnalysisPlanVerification, queryAsObject, resolveParams, translate, writeToMethods inherited from class org.elasticsearch.xpack.esql.expression.function.fulltext.FullTextFunction
asQuery, dataType, fieldAsFieldAttribute, fieldVerifier, getNameFromFieldAttribute, nullable, postOptimizationVerification, query, queryBuilder, resolveQuery, resolveType, toEvaluator, toScorer, translatableMethods inherited from class org.elasticsearch.xpack.esql.core.expression.function.Function
arguments, nodeStringMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, canonicalize, childrenResolved, fold, foldable, propertiesToString, references, resolved, semanticEquals, semanticHash, toString, typeResolvedMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
anyMatch, children, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachDownMayReturnEarly, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, replaceChildrenSameSize, source, sourceLocation, sourceText, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUpMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.esql.evaluator.mapper.EvaluatorMapper
foldMethods inherited from interface org.elasticsearch.xpack.esql.capabilities.TranslationAware
asLuceneQuery
-
Constructor Details
-
MatchOperator
-
-
Method Details
-
functionType
Description copied from class:FullTextFunctionUsed to differentiate error messages between functions and operators- Overrides:
functionTypein classFullTextFunction- Returns:
- function type for error messages
-
functionName
- Overrides:
functionNamein classFunction
-
info
-
replaceChildren
- Overrides:
replaceChildrenin classMatch
-
replaceQueryBuilder
- Overrides:
replaceQueryBuilderin classMatch
-