Class MatchPhrase
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.SingleFieldFullTextFunction
org.elasticsearch.xpack.esql.expression.function.fulltext.MatchPhrase
- All Implemented Interfaces:
NamedWriteable,Writeable,PostAnalysisPlanVerificationAware,PostOptimizationPlanVerificationAware,PostOptimizationVerificationAware,RewriteableAware,TranslationAware,Resolvable,EvaluatorMapper,OptionalArgument,ExpressionScoreMapper
Full text function that performs a
MatchPhraseQuery .-
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.PostOptimizationVerificationAware
PostOptimizationVerificationAware.CoordinatorOnlyNested 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
FieldsFields inherited from class org.elasticsearch.xpack.esql.expression.function.fulltext.SingleFieldFullTextFunction
fieldFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionMatchPhrase(Source source, Expression field, Expression matchPhraseQuery, Expression options) MatchPhrase(Source source, Expression field, Expression matchPhraseQuery, Expression options, QueryBuilder queryBuilder) -
Method Summary
Modifier and TypeMethodDescriptionReturns the allowed options map for this function.Returns the set of allowed data types for the field parameter.Returns the set of allowed data types for the query parameter.protected NodeInfo<? extends Expression> info()replaceChildren(List<Expression> newChildren) replaceQueryBuilder(QueryBuilder queryBuilder) Replaces the current query builder with a rewritten iteration.protected Querytranslate(LucenePushdownPredicates pushdownPredicates, TranslatorHandler handler) final voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.expression.function.fulltext.SingleFieldFullTextFunction
equals, expectedFieldTypesString, expectedQueryTypesString, field, fieldAsFieldAttribute, fold, foldable, hashCode, nullable, options, postAnalysisPlanVerification, postOptimizationPlanVerification, queryAsObject, resolveField, resolveOptions, resolveParams, resolveQueryMethods inherited from class org.elasticsearch.xpack.esql.expression.function.fulltext.FullTextFunction
asQuery, dataType, evaluatorQueryBuilder, fieldAsFieldAttribute, fieldVerifier, functionType, getNameFromFieldAttribute, 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, 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
-
Field Details
-
ENTRY
-
FIELD_DATA_TYPES
-
QUERY_DATA_TYPES
-
ALLOWED_OPTIONS
-
-
Constructor Details
-
MatchPhrase
public MatchPhrase(Source source, Expression field, Expression matchPhraseQuery, Expression options) -
MatchPhrase
public MatchPhrase(Source source, Expression field, Expression matchPhraseQuery, Expression options, QueryBuilder queryBuilder)
-
-
Method Details
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
functionName
- Overrides:
functionNamein classFunction
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getFieldDataTypes
Description copied from class:SingleFieldFullTextFunctionReturns the set of allowed data types for the field parameter. Each subclass defines which field types it supports.- Specified by:
getFieldDataTypesin classSingleFieldFullTextFunction
-
getQueryDataTypes
Description copied from class:SingleFieldFullTextFunctionReturns the set of allowed data types for the query parameter. Each subclass defines which query types it supports.- Specified by:
getQueryDataTypesin classSingleFieldFullTextFunction
-
getAllowedOptions
Description copied from class:SingleFieldFullTextFunctionReturns the allowed options map for this function. Keys are option names, values are the expected data types.- Specified by:
getAllowedOptionsin classSingleFieldFullTextFunction
-
info
- Specified by:
infoin classNode<Expression>
-
replaceChildren
- Specified by:
replaceChildrenin classNode<Expression>
-
replaceQueryBuilder
Description copied from interface:RewriteableAwareReplaces the current query builder with a rewritten iteration. This happens multiple times through the rewrite phase until the final iteration of the query builder is stored.- Specified by:
replaceQueryBuilderin interfaceRewriteableAware- Parameters:
queryBuilder- QueryBuilder- Returns:
- Expression defining the active QueryBuilder
-
translate
- Specified by:
translatein classFullTextFunction
-