elasticsearch/docs/reference/query-languages/esql/functions-operators
Kathleen DeRusso eee423aaa0
[ES|QL] Add MATCH_PHRASE (#127661)
* Initial commit of match_phrase

* Add MatchPhraseQueryTests

* First pass at CSV specs

* Update docs/changelog/127661.yaml

* Refactor so MatchPhrase doesn't use all fulltext test cases, just text only

* Fix tests

* Add some CSV test cases

* Fix test

* Update changelog

* Update tests

* Comment out MATCH_PHRASE in search-functions Markdown

* Minor PR feedback

* PR feedback - refactor/consolidate code

* Add some more tests

* Fix some tests

* [CI] Auto commit changes from spotless

* Fix tests

* PR feedback - add tests, support boost and numeric data

* Revert "PR feedback - add tests, support boost and numeric data"

This reverts commit 4e7a699e3e.

* Apply testing/PR feedback outside numeric support only

* Regenerate docs

* Add negative test

* Update x-pack/plugin/esql/qa/testFixtures/src/main/resources/match-phrase-function.csv-spec

Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>

* Update x-pack/plugin/esql/qa/testFixtures/src/main/resources/match-phrase-function.csv-spec

Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>

* Update x-pack/plugin/esql/qa/testFixtures/src/main/resources/match-phrase-function.csv-spec

Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>

* PR feedback

* Fix auto-commit error

* Regenerate docs

* Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhrase.java

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

* Remove non text field types

* Fake test data

* Remove tests that no longer should pass without ip/date/version support

* Put real data in score tests now that I was able to engineer a failure

* Realized the scoring test might be flakey because how it was written, updated

* PR feedback

* PR feedback

* [CI] Auto commit changes from spotless

* Add check to MatchPhrase tests

* Fix merge errors

* [CI] Auto commit changes from spotless

* Test generated docs

* Add additional verifier tests

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-06-04 12:32:24 -04:00
..
aggregation-functions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
conditional-functions-and-expressions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
date-time-functions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
grouping-functions.md Add license mention to ESQL categorize (#126666) 2025-04-11 11:13:12 +02:00
ip-functions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
math-functions.md ESQL: Enable docs for ROUND_TO (#128378) 2025-05-23 19:06:05 +02:00
mv-functions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
operators.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
search-functions.md [ES|QL] Add MATCH_PHRASE (#127661) 2025-06-04 12:32:24 -04:00
spatial-functions.md ES|QL Support for ST_GEOHASH, ST_GEOTILE and ST_GEOHEX (#125143) 2025-06-03 11:49:34 +02:00
string-functions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00
type-conversion-functions.md Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) 2025-04-10 15:56:05 +02:00