Skip to content

Add multi_match to SQL plugin - #649

Merged
joshuali925 merged 5 commits into
opensearch-project:mainfrom
Bit-Quill:integ-multi_match-#188
Jun 23, 2022
Merged

joshuali925 merged 5 commits into
opensearch-project:mainfrom
Bit-Quill:integ-multi_match-#188

Conversation

@MaxKsyunz

Copy link
Copy Markdown
Collaborator

Description

Add multi_match full-text search function to SQL and PPL.

Issues Resolved

#188

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

@MaxKsyunz
MaxKsyunz requested a review from a team as a code owner June 21, 2022 19:08
@codecov-commenter

codecov-commenter commented Jun 21, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #649 (d8cac8f) into main (d81ef73) will decrease coverage by 31.87%.
The diff coverage is n/a.

@@              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     
Flag Coverage Δ
query-workbench 62.76% <ø> (ø)
sql-engine ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...c/main/java/org/opensearch/sql/expression/DSL.java
...h/sql/expression/function/BuiltinFunctionName.java
...h/sql/expression/function/OpenSearchFunctions.java
...arch/storage/script/filter/FilterQueryBuilder.java
...arch/storage/system/OpenSearchSystemIndexScan.java
...sql/opensearch/response/agg/SingleValueParser.java
...opensearch/planner/physical/MLCommonsOperator.java
.../sql/planner/physical/collector/SpanCollector.java
...age/serialization/DefaultExpressionSerializer.java
.../org/opensearch/sql/sql/antlr/SQLSyntaxParser.java
... and 259 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d81ef73...d8cac8f. Read the comment docs.

Comment thread docs/user/ppl/functions/relevance.rst Outdated
Comment on lines +146 to +151
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 |
|-------------+------------+--------+-----------|
+-------------+------------+--------+-----------+

Copy link
Copy Markdown
Collaborator

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?

Copy link
Copy Markdown
Collaborator

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.

@penghuo penghuo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshuali925
joshuali925 merged commit 90ccc3e into opensearch-project:main Jun 23, 2022
@Yury-Fridlyand
Yury-Fridlyand deleted the integ-multi_match-#188 branch June 23, 2022 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants