File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
x-pack/plugin/esql/qa/testFixtures/src/main/resources Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,58 @@ book_no:keyword | title:text | author
1271272847 | To Love A Dark Stranger (Lovegram Historical Romance) | Colleen Faulkner | 1.9662091732025146
128128;
129129
130+ testMultiMatchWithScore1
131+ required_capability: multi_match_function
132+ required_capability: metadata_score
133+
134+ from books metadata _score
135+ | where multi_match("Hobbit", description, title, {"type": "best_fields"})
136+ | sort book_no
137+ | keep book_no, _score;
138+ ignoreOrder:true
139+
140+ 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
154+ ;
155+
156+ testMultiMatchWithScore2
157+ required_capability: multi_match_function
158+ required_capability: metadata_score
159+
160+ from books metadata _score
161+ | where multi_match("Hobbit", description, title, {"type": "most_fields"})
162+ | sort book_no
163+ | keep book_no, _score;
164+ ignoreOrder:true
165+
166+ 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
180+ ;
181+
130182multipleWhereWithMatchScoringNoSort
131183required_capability: metadata_score
132184required_capability: match_operator_colon
You can’t perform that action at this time.
0 commit comments