-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add multi_match function #121525 #125062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multi_match function #121525 #125062
Changes from 29 commits
d392b17
18559d0
dd28440
4e67cb2
e871d38
6ab6baa
a2a5fde
bb57f52
257caf9
28ca7e7
78f6c52
07d6230
d280906
9a72c76
27d4138
099a555
9d48454
651c28f
7e06f77
fb53d2b
422e4dd
c56cab6
b0cac5c
cfb2f23
eeed847
e3d4f60
3a10b44
f9649da
322e5ae
3884437
ae8c7cd
c308b1c
fbbb7eb
6f75f30
8d72e21
463938d
83cb95d
4c83974
a3aa40f
89ae411
d0138d9
a9bca4c
0979299
2a673b3
b0bfecc
d06f161
dc04490
c3a091c
38029fb
20ad6c8
c8f4bfb
a35b390
44912dc
282f8a2
0c7d352
262db09
f420b52
b8f5c21
b08c8ea
e603145
70ffeac
c1d4157
bfb5fa9
bfbaa13
876c1ce
890c3a9
8cf0343
33fba44
f67c607
101c4b2
98ad8b0
ff95fe7
c574a1b
6713caf
4c2eaa2
51a7e6b
fa3d50a
050f086
665c32e
56888af
02e2b75
4774dbe
999b820
8a74c79
937963b
6703882
44d6721
1cdf7ed
58d37f8
9b90726
9c6b73d
b5d6edb
0b928d1
3ea5092
b526b81
9c37690
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ pr: 125062 | |
| summary: "Add `multi_match` function #121525" | ||
| area: Search | ||
| type: feature | ||
| issues: [] | ||
| issues: [121525] | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,6 +127,60 @@ book_no:keyword | title:text | author | |
| 2847 | To Love A Dark Stranger (Lovegram Historical Romance) | Colleen Faulkner | 1.9662091732025146 | ||
svilen-mihaylov-elastic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ; | ||
|
|
||
| testMultiMatchWithScore1 | ||
| required_capability: multi_match_function | ||
| required_capability: metadata_score | ||
|
|
||
| from books metadata _score | ||
| | where multi_match("Hobbit", description, title, {"type": "best_fields"}) | ||
| | sort book_no | ||
| | eval _score = round(_score) | ||
| | keep book_no, _score; | ||
| ignoreOrder:true | ||
|
|
||
| book_no:keyword | _score:double | ||
| 1463 | 2.0 | ||
| 2301 | 2.0 | ||
| 2675 | 2.0 | ||
| 2714 | 2.0 | ||
| 2936 | 1.0 | ||
| 4023 | 2.0 | ||
| 4289 | 3.0 | ||
| 5335 | 2.0 | ||
| 5996 | 2.0 | ||
| 6405 | 2.0 | ||
| 6760 | 2.0 | ||
| 7350 | 2.0 | ||
| 7480 | 3.0 | ||
| ; | ||
|
|
||
| testMultiMatchWithScore2 | ||
| required_capability: multi_match_function | ||
| required_capability: metadata_score | ||
|
|
||
| from books metadata _score | ||
| | where multi_match("Hobbit", description, title, {"type": "most_fields"}) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice work on combining the scores via |
||
| | sort book_no | ||
| | eval _score = round(_score) | ||
| | keep book_no, _score; | ||
| ignoreOrder:true | ||
|
|
||
| book_no:keyword | _score:double | ||
| 1463 | 2.0 | ||
| 2301 | 2.0 | ||
| 2675 | 2.0 | ||
| 2714 | 2.0 | ||
| 2936 | 1.0 | ||
| 4023 | 2.0 | ||
| 4289 | 6.0 | ||
| 5335 | 2.0 | ||
| 5996 | 2.0 | ||
| 6405 | 2.0 | ||
| 6760 | 2.0 | ||
| 7350 | 2.0 | ||
| 7480 | 3.0 | ||
| ; | ||
|
|
||
| multipleWhereWithMatchScoringNoSort | ||
| required_capability: metadata_score | ||
| required_capability: match_operator_colon | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.