-
Notifications
You must be signed in to change notification settings - Fork 56
k-NN plugin support for Elasticsearch version 7.10.0 #271
Conversation
Codecov Report
@@ Coverage Diff @@
## master #271 +/- ##
============================================
- Coverage 78.72% 78.39% -0.33%
- Complexity 338 342 +4
============================================
Files 53 54 +1
Lines 1335 1361 +26
Branches 121 122 +1
============================================
+ Hits 1051 1067 +16
- Misses 235 243 +8
- Partials 49 51 +2
Continue to review full report at Codecov.
|
int value = XContentMapValues.nodeIntegerValue(o); | ||
private final Parameter<Integer> dimension = new Parameter<>(KNNConstants.DIMENSION, false, () -> -1, | ||
(n, c, o) -> { | ||
int value = (o == null ? null : XContentMapValues.nodeIntegerValue(o)); |
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.
if o is null, then i don't think we can assign null to value since it is primitive.
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.
Good catch. Fixed.
@@ -0,0 +1,138 @@ | |||
/* | |||
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
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.
Copyright 2020
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.
Fixed. Thanks
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.
Just to confirm, this PR is not meant to upgrade ODFE to 1.12, correct? That will be done in a different PR?
@@ -13,4 +13,4 @@ | |||
# permissions and limitations under the License. | |||
# | |||
|
|||
version=1.6 | |||
version=1.11.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.
What is this for?
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.
Actually this variable is not in use. It was pointing to older version. So i updated to latest version. This variable could be used in build.gradle file.
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.
I see makes sense.
right. This was to upgrade to 7.10. |
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
Issue #, if available:
#270
Description of changes:
k-NN plugin support for Elasticsearch version 7.10.0
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.