mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
[ESQL] Fix match phrase tests not being deterministic (#129724)
Closes https://github.com/elastic/elasticsearch/issues/129676
This commit is contained in:
parent
0dba16384e
commit
2b8d9df0ef
2 changed files with 6 additions and 7 deletions
|
@ -565,9 +565,6 @@ tests:
|
||||||
- class: org.elasticsearch.test.apmintegration.TracesApmIT
|
- class: org.elasticsearch.test.apmintegration.TracesApmIT
|
||||||
method: testApmIntegration
|
method: testApmIntegration
|
||||||
issue: https://github.com/elastic/elasticsearch/issues/129651
|
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
|
- class: org.elasticsearch.search.query.RescoreKnnVectorQueryIT
|
||||||
method: testKnnSearchRescore
|
method: testKnnSearchRescore
|
||||||
issue: https://github.com/elastic/elasticsearch/issues/129713
|
issue: https://github.com/elastic/elasticsearch/issues/129713
|
||||||
|
|
|
@ -567,11 +567,12 @@ required_capability: metadata_score
|
||||||
from books metadata _score
|
from books metadata _score
|
||||||
| where match_phrase(title, "J. R. R. Tolkien")
|
| where match_phrase(title, "J. R. R. Tolkien")
|
||||||
| keep book_no, title, author, _score
|
| keep book_no, title, author, _score
|
||||||
|
| sort _score desc
|
||||||
;
|
;
|
||||||
|
|
||||||
book_no:keyword | title:text | author:text | _score:double
|
book_no:keyword | title:text | author:text | _score:double
|
||||||
5335 | Letters of J R R Tolkien | J.R.R. Tolkien | 9.017186164855957
|
5335 | Letters of J R R Tolkien | J.R.R. Tolkien | 9.017186164855957
|
||||||
2130 | The J. R. R. Tolkien Audio Collection | [Christopher Tolkien, John Ronald Reuel Tolkien] | 8.412636756896973
|
2130 | The J. R. R. Tolkien Audio Collection | [Christopher Tolkien, John Ronald Reuel Tolkien] | 8.412636756896973
|
||||||
;
|
;
|
||||||
|
|
||||||
testMatchPhraseWithScoreBoost
|
testMatchPhraseWithScoreBoost
|
||||||
|
@ -580,9 +581,10 @@ required_capability: match_phrase_function
|
||||||
from books metadata _score
|
from books metadata _score
|
||||||
| where match_phrase(title, "J. R. R. Tolkien", {"boost": 5})
|
| where match_phrase(title, "J. R. R. Tolkien", {"boost": 5})
|
||||||
| keep book_no, title, author, _score
|
| keep book_no, title, author, _score
|
||||||
|
| sort _score desc
|
||||||
;
|
;
|
||||||
|
|
||||||
book_no:keyword | title:text | author:text | _score:double
|
book_no:keyword | title:text | author:text | _score:double
|
||||||
5335 | Letters of J R R Tolkien | J.R.R. Tolkien | 45.0859260559082
|
5335 | Letters of J R R Tolkien | J.R.R. Tolkien | 45.0859260559082
|
||||||
2130 | The J. R. R. Tolkien Audio Collection | [Christopher Tolkien, John Ronald Reuel Tolkien] | 42.06318283081055
|
2130 | The J. R. R. Tolkien Audio Collection | [Christopher Tolkien, John Ronald Reuel Tolkien] | 42.06318283081055
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue