Skip to content

Commit 85a2374

Browse files
committed
Add stats scores test
1 parent 3963fd3 commit 85a2374

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ book_no:keyword | _score:double
521521
8678 | 0.0
522522
;
523523

524-
525524
disjunctionScoresMultipleClauses
526525

527526
required_capability: metadata_score
@@ -544,3 +543,17 @@ book_no:keyword | _score:double
544543
4023 | 1.5062403678894043
545544
2924 | 1.2732219696044922
546545
;
546+
547+
statsScores
548+
549+
required_capability: metadata_score
550+
required_capability: match_function
551+
required_capability: full_text_functions_in_stats_where
552+
553+
from books metadata _score
554+
| stats avg_score = avg(_score) where match(title, "Lord Rings", {"operator": "AND"})
555+
;
556+
557+
avg_score:double
558+
3.869828939437866
559+
;

0 commit comments

Comments
 (0)