Skip to content

[ES|QL] Add MATCH_PHRASE #127661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/127661.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 127661
summary: Add MATCH_PHRASE
area: ES|QL
type: enhancement
issues: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
* [preview] [`KQL`](../../functions-operators/search-functions.md#esql-kql)
* [preview] [`MATCH`](../../functions-operators/search-functions.md#esql-match)
* [preview] [

Check failure on line 3 in docs/reference/query-languages/esql/_snippets/lists/search-functions.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

`esql-match-phrase` does not exist in reference/query-languages/esql/functions-operators/search-functions.md.

Check failure on line 3 in docs/reference/query-languages/esql/_snippets/lists/search-functions.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

`esql-match-phrase` does not exist in reference/query-languages/esql/functions-operators/search-functions.md.
`MATCH_PHRASE`](../../functions-operators/search-functions.md#esql-match-phrase)
* [preview] [`QSTR`](../../functions-operators/search-functions.md#esql-qstr)
% * [preview] [`TERM`](../../functions-operators/search-functions.md#esql-term)
% * [preview] [
`TERM`](../../functions-operators/search-functions.md#esql-term)
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,45 @@ mapped_pages:

# {{esql}} Search functions [esql-search-functions]

Use these functions for [full-text search](docs-content://solutions/search/full-text.md) and [semantic search](docs-content://solutions/search/semantic-search/semantic-search-semantic-text.md).
Use these functions
for [full-text search](docs-content://solutions/search/full-text.md)
and [semantic search](docs-content://solutions/search/semantic-search/semantic-search-semantic-text.md).

Get started with {{esql}} for search use cases with our [hands-on tutorial](docs-content://solutions/search/esql-search-tutorial.md).
Get started with {{esql}} for search use cases with
our [hands-on tutorial](docs-content://solutions/search/esql-search-tutorial.md).

Full text functions can be used to match [multivalued fields](/reference/query-languages/esql/esql-multivalued-fields.md). A multivalued field that contains a value that matches a full text query is considered to match the query.
Full text functions can be used to
match [multivalued fields](/reference/query-languages/esql/esql-multivalued-fields.md).
A multivalued field that contains a value that matches a full text query is
considered to match the query.

Full text functions are significantly more performant for text search use cases on large data sets than using pattern matching or regular expressions with `LIKE` or `RLIKE`
Full text functions are significantly more performant for text search use cases
on large data sets than using pattern matching or regular expressions with
`LIKE` or `RLIKE`

See [full text search limitations](/reference/query-languages/esql/limitations.md#esql-limitations-full-text-search) for information on the limitations of full text search.
See [full text search limitations](/reference/query-languages/esql/limitations.md#esql-limitations-full-text-search)
for information on the limitations of full text search.

{{esql}} supports these full-text search functions:

:::{include} ../_snippets/lists/search-functions.md
:::


:::{include} ../_snippets/functions/layout/kql.md
:::

:::{include} ../_snippets/functions/layout/match.md
:::

:::{include} ../_snippets/functions/layout/match_phrase.md
:::

:::{include} ../_snippets/functions/layout/qstr.md
:::

% TERM is currently a hidden feature
% To make it visible again, uncomment this and the line in lists/search-functions.md
% To make it visible again, uncomment this and the line in
lists/search-functions.md
% :::{include} ../_snippets/functions/layout/term.md
% :::

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading