-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dev match_phrase_prefix #186 required #68
Dev match_phrase_prefix #186 required #68
Conversation
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Change generateQueries signature to use more appropriate Map type. Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Codecov Report
@@ Coverage Diff @@
## dev-match_phrase_prefix-#186 #68 +/- ##
===============================================================
Coverage 97.66% 97.66%
- Complexity 2743 2747 +4
===============================================================
Files 268 269 +1
Lines 6772 6781 +9
Branches 435 435
===============================================================
+ Hits 6614 6623 +9
Misses 157 157
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
@@ -27,6 +27,7 @@ public class OpenSearchFunctions { | |||
public static final int MATCH_MAX_NUM_PARAMETERS = 12; | |||
public static final int MATCH_PHRASE_MAX_NUM_PARAMETERS = 3; | |||
public static final int MIN_NUM_PARAMETERS = 2; | |||
private static final int MATCH_PHRASE_PREFIX_MAX_NUM_PARAMETERS = 0; |
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.
why is this one private?
Description
Add support to SQL for
match_phrase_prefix
query function with required parameters only.Example query:
SELECT * FROM banks WHERE match_phrase_prefix(Address, "Str")
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.