-
Notifications
You must be signed in to change notification settings - Fork 142
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 to SQL plugin #649
Add multi_match to SQL plugin #649
Conversation
Signed-off-by: Yury Fridlyand <[email protected]>
Signed-off-by: Yury Fridlyand <[email protected]>
…y_string` both. Signed-off-by: Yury Fridlyand <[email protected]>
Add implementation of `multi_match` similar to `simple_query_string`.
Codecov Report
@@ Coverage Diff @@
## main #649 +/- ##
=============================================
- Coverage 94.63% 62.76% -31.88%
=============================================
Files 279 10 -269
Lines 7517 658 -6859
Branches 556 119 -437
=============================================
- Hits 7114 413 -6701
+ Misses 349 192 -157
+ Partials 54 53 -1
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
os> source=accounts | where multi_match(['firstname', city ^ 2], 'Amber Nogal', analyzer=keyword, operator='AND') | fields firstname, lastname, city, address; | ||
fetched rows / total rows = 0/0 | ||
+-------------+------------+--------+-----------+ | ||
| firstname | lastname | city | address | | ||
|-------------+------------+--------+-----------| | ||
+-------------+------------+--------+-----------+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe better to show an example query with non-empty response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Please, see fix in d8cac8f.
Signed-off-by: Yury Fridlyand <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Add multi_match full-text search function to SQL and PPL.
Issues Resolved
#188
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.