Skip to content

Add MatchPhraseQuery As Alternate Syntax for Match_Phrase Function - #1103

Merged
dai-chen merged 6 commits into
opensearch-project:2.xfrom
Bit-Quill:integ-add-legacy-syntax-for-matchphrase-function
Dec 1, 2022
Merged

dai-chen merged 6 commits into
opensearch-project:2.xfrom
Bit-Quill:integ-add-legacy-syntax-for-matchphrase-function

Conversation

@GabeFernandez310

Copy link
Copy Markdown
Contributor

Description

Adds matchphrasequery as alternate syntax for match_phrase function which currently exists in opensearch

Queries can be performed using the following syntax :

matchphrasequery(field, 'query')

Example:

SELECT field FROM index WHERE matchphrasequery(field, 'query');

This query should return the same result as match_phrase(field, 'query')

Issues Resolved

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.

GabeFernandez310 and others added 4 commits November 21, 2022 08:12
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
…hphrase-function

Add MatchPhraseQuery As Alternate Syntax for Match_Phrase Function
@GabeFernandez310
GabeFernandez310 requested a review from a team as a code owner November 24, 2022 17:39
@codecov-commenter

codecov-commenter commented Nov 24, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.78%. Comparing base (e2bf254) to head (3a96e0b).
⚠️ Report is 466 commits behind head on 2.x.

❌ Your project status has failed because the head coverage (95.78%) is below the target coverage (99.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1103      +/-   ##
============================================
- Coverage     98.29%   95.78%   -2.52%     
  Complexity     3465     3465              
============================================
  Files           347      357      +10     
  Lines          8647     9307     +660     
  Branches        550      669     +119     
============================================
+ Hits           8500     8915     +415     
- Misses          142      334     +192     
- Partials          5       58      +53     
Flag Coverage Δ
query-workbench 62.76% <ø> (?)
sql-engine 98.30% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Yury-Fridlyand
Yury-Fridlyand previously approved these changes Nov 24, 2022
MaxKsyunz
MaxKsyunz previously approved these changes Nov 25, 2022
Comment thread docs/user/dql/functions.rst Resolved
Signed-off-by: GabeFernandez310 <[email protected]>

@dai-chen dai-chen 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.

Thanks for the changes!

@dai-chen
dai-chen merged commit 1287e89 into opensearch-project:2.x Dec 1, 2022
@dai-chen dai-chen added the enhancement New feature or request label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants