-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Adding query fuzziness validation #5805
Conversation
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
server/src/test/java/org/opensearch/common/unit/FuzzinessTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sean Li <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
@@ -189,7 +189,13 @@ public static Fuzziness parse(XContentParser parser) throws IOException { | |||
return build(fuzziness); | |||
} | |||
} catch (NumberFormatException ex) { | |||
return build(fuzziness); | |||
// Validating if the inputted Fuzziness value is a float. If not, it is an invalid string. |
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.
non blocking comment -
'Validate if the fuzziness
is formatted correctly as a numeric value.'
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.
addressed in 4409f99
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.
Approved with one nit comment
Signed-off-by: Sean Li <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Sean Li <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Sean Li <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #5805 +/- ##
============================================
- Coverage 70.77% 70.67% -0.11%
+ Complexity 59125 59068 -57
============================================
Files 4804 4804
Lines 283098 283101 +3
Branches 40813 40813
============================================
- Hits 200372 200077 -295
- Misses 66269 66623 +354
+ Partials 16457 16401 -56
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Sean Li <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
* Adding fuzziness validation Signed-off-by: Sean Li <[email protected]> * Updating imports Signed-off-by: Sean Li <[email protected]> * Adding fuzziness validation Signed-off-by: Sean Li <[email protected]> * Updating imports Signed-off-by: Sean Li <[email protected]> * removing comments Signed-off-by: Sean Li <[email protected]> * running spotlessApply Signed-off-by: Sean Li <[email protected]> * updating CHANGELOG.md Signed-off-by: Sean Li <[email protected]> * resolving reviews Signed-off-by: Sean Li <[email protected]> * revising comment Signed-off-by: Sean Li <[email protected]> * updating CHANGELOG.md Signed-off-by: Sean Li <[email protected]> * moving fix to 2.x in CHANGELOG.md Signed-off-by: Sean Li <[email protected]> --------- Signed-off-by: Sean Li <[email protected]> (cherry picked from commit add1871) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Adding fuzziness validation * Updating imports * Adding fuzziness validation * Updating imports * removing comments * running spotlessApply * updating CHANGELOG.md * resolving reviews * revising comment * updating CHANGELOG.md * moving fix to 2.x in CHANGELOG.md --------- (cherry picked from commit add1871) Signed-off-by: Sean Li <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Adding fuzziness validation Signed-off-by: Sean Li <[email protected]> * Updating imports Signed-off-by: Sean Li <[email protected]> * Adding fuzziness validation Signed-off-by: Sean Li <[email protected]> * Updating imports Signed-off-by: Sean Li <[email protected]> * removing comments Signed-off-by: Sean Li <[email protected]> * running spotlessApply Signed-off-by: Sean Li <[email protected]> * updating CHANGELOG.md Signed-off-by: Sean Li <[email protected]> * resolving reviews Signed-off-by: Sean Li <[email protected]> * revising comment Signed-off-by: Sean Li <[email protected]> * updating CHANGELOG.md Signed-off-by: Sean Li <[email protected]> * moving fix to 2.x in CHANGELOG.md Signed-off-by: Sean Li <[email protected]> --------- Signed-off-by: Sean Li <[email protected]> Signed-off-by: Mingshi Liu <[email protected]>
Description
Validates fuzziness query and returns error message on invalid fuzziness values
Issues Resolved
#4223
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.