elasticsearch/docs/reference/query-languages/esql/_snippets/functions/description/match.md

1.3 KiB

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

Description

Use MATCH to perform a match query on the specified field. Using MATCH is equivalent to using the match query in the Elasticsearch Query DSL.

Match can be used on fields from the text family like text and semantic_text, as well as other field types like keyword, boolean, dates, and numeric types. When Match is used on a semantic_text field, it will perform a semantic query on the field.

Match can use function named parameters to specify additional options for the match query. All match query parameters are supported.

For a simplified syntax, you can use the match operator : operator instead of MATCH.

MATCH returns true if the provided query matches the row.