Skip to content

Commit f932406

Browse files
committed
Fix test merges
1 parent c0b622b commit f932406

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/scoring.csv-spec

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ _id:keyword
365365
scoresNonPushableFunctions
366366

367367
required_capability: metadata_score
368+
required_capability: non_full_text_functions_scoring
368369

369370
from books metadata _score
370371
| where length(title) > 100
@@ -373,13 +374,14 @@ from books metadata _score
373374
;
374375

375376
book_no:keyword | _score:double
376-
2924 | 1.0
377-
8678 | 1.0
377+
2924 | 0.0
378+
8678 | 0.0
378379
;
379380

380381
scoresPushableFunctions
381382

382383
required_capability: metadata_score
384+
required_capability: non_full_text_functions_scoring
383385

384386
from books metadata _score
385387
| where year >= 2017
@@ -388,11 +390,11 @@ from books metadata _score
388390
;
389391

390392
book_no:keyword | _score:double
391-
6818 | 1.0
392-
7400 | 1.0
393-
8480 | 1.0
394-
8534 | 1.0
395-
8615 | 1.0
393+
6818 | 0.0
394+
7400 | 0.0
395+
8480 | 0.0
396+
8534 | 0.0
397+
8615 | 0.0
396398
;
397399

398400
conjunctionScoresPushableNonPushableFunctions
@@ -417,6 +419,7 @@ conjunctionScoresPushableFunctions
417419

418420
required_capability: metadata_score
419421
required_capability: match_function
422+
required_capability: non_full_text_functions_scoring
420423

421424
from books metadata _score
422425
| where match(title, "Lord") and ratings > 4.6
@@ -425,8 +428,8 @@ from books metadata _score
425428
;
426429

427430
book_no:keyword | _score:double
428-
7140 | 2.746896743774414
429-
4023 | 2.5062403678894043
431+
7140 | 1.746896743774414
432+
4023 | 1.5062403678894043
430433
;
431434

432435
disjunctionScoresPushableNonPushableFunctions
@@ -442,12 +445,12 @@ from books metadata _score
442445
;
443446

444447
book_no:keyword | _score:double
445-
2675 | 3.5619282722473145
446-
2714 | 2.9245924949645996
447-
7140 | 2.746896743774414
448-
4023 | 2.5062403678894043
449-
2924 | 1.0
450-
8678 | 1.0
448+
2675 | 2.5619282722473145
449+
2714 | 1.9245924949645996
450+
7140 | 1.746896743774414
451+
4023 | 1.5062403678894043
452+
2924 | 0.0
453+
8678 | 0.0
451454
;
452455

453456

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ public enum Cap {
873873
FULL_TEXT_FUNCTIONS_DISJUNCTIONS_SCORE,
874874

875875
/**
876-
* Full text functions do not contribute to score
876+
* Non full text functions do not contribute to score
877877
*/
878878
NON_FULL_TEXT_FUNCTIONS_SCORING;
879879

0 commit comments

Comments
 (0)