[ESQL] Fix match phrase tests not being deterministic (#129724)

Closes https://github.com/elastic/elasticsearch/issues/129676
This commit is contained in:
Iván Cea Fontenla 2025-06-19 19:13:17 +02:00 committed by GitHub
parent 0dba16384e
commit 2b8d9df0ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View file

@ -565,9 +565,6 @@ tests:
- class: org.elasticsearch.test.apmintegration.TracesApmIT
method: testApmIntegration
issue: https://github.com/elastic/elasticsearch/issues/129651
- class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT
method: test {scoring.TestMatchPhraseWithScoreBoost ASYNC}
issue: https://github.com/elastic/elasticsearch/issues/129676
- class: org.elasticsearch.search.query.RescoreKnnVectorQueryIT
method: testKnnSearchRescore
issue: https://github.com/elastic/elasticsearch/issues/129713

View file

@ -567,6 +567,7 @@ required_capability: metadata_score
from books metadata _score
| where match_phrase(title, "J. R. R. Tolkien")
| keep book_no, title, author, _score
| sort _score desc
;
book_no:keyword | title:text | author:text | _score:double
@ -580,6 +581,7 @@ required_capability: match_phrase_function
from books metadata _score
| where match_phrase(title, "J. R. R. Tolkien", {"boost": 5})
| keep book_no, title, author, _score
| sort _score desc
;
book_no:keyword | title:text | author:text | _score:double