Skip to content

Commit 33fba44

Browse files
Update scores
1 parent 8cf0343 commit 33fba44

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

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

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,24 @@ required_capability: metadata_score
134134
from books metadata _score
135135
| where multi_match("Hobbit", description, title, {"type": "best_fields"})
136136
| sort book_no
137+
| eval _score = round(_score)
137138
| keep book_no, _score;
138139
ignoreOrder:true
139140

140141
book_no:keyword | _score:double
141-
1463 | 2.358983
142-
2301 | 2.071226
143-
2675 | 2.289487
144-
2714 | 2.418555
145-
2936 | 1.283462
146-
4023 | 2.494393
147-
4289 | 3.456052
148-
5335 | 1.83623
149-
5996 | 1.83623
150-
6405 | 2.103159
151-
6760 | 2.234876
152-
7350 | 1.517904
153-
7480 | 3.163694
142+
1463 | 2.0
143+
2301 | 2.0
144+
2675 | 2.0
145+
2714 | 2.0
146+
2936 | 1.0
147+
4023 | 2.0
148+
4289 | 3.0
149+
5335 | 2.0
150+
5996 | 2.0
151+
6405 | 2.0
152+
6760 | 2.0
153+
7350 | 2.0
154+
7480 | 3.0
154155
;
155156

156157
testMultiMatchWithScore2
@@ -160,23 +161,24 @@ required_capability: metadata_score
160161
from books metadata _score
161162
| where multi_match("Hobbit", description, title, {"type": "most_fields"})
162163
| sort book_no
164+
| eval _score = round(_score)
163165
| keep book_no, _score;
164166
ignoreOrder:true
165167

166168
book_no:keyword | _score:double
167-
1463 | 2.358983
168-
2301 | 2.071226
169-
2675 | 2.289487
170-
2714 | 2.418555
171-
2936 | 1.283462
172-
4023 | 2.494393
173-
4289 | 6.262199
174-
5335 | 1.83623
175-
5996 | 1.83623
176-
6405 | 2.103159
177-
6760 | 2.234876
178-
7350 | 1.517904
179-
7480 | 3.163694
169+
1463 | 2.0
170+
2301 | 2.0
171+
2675 | 2.0
172+
2714 | 2.0
173+
2936 | 1.0
174+
4023 | 2.0
175+
4289 | 6.0
176+
5335 | 2.0
177+
5996 | 2.0
178+
6405 | 2.0
179+
6760 | 2.0
180+
7350 | 2.0
181+
7480 | 3.0
180182
;
181183

182184
multipleWhereWithMatchScoringNoSort

0 commit comments

Comments
 (0)