Skip to content

Commit

Permalink
Updating NPE bug fixes for opensearch-project#2556
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Ganesh <[email protected]>
  • Loading branch information
oaganesh committed Mar 5, 2025
1 parent e7d5304 commit fc14165
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jni/external/faiss
Submodule faiss updated from 0cbc2a to 2cb37f
2 changes: 1 addition & 1 deletion jni/external/nmslib
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ public static class Builder extends ParametrizedFieldMapper.Builder {
b.startObject(n);
v.toXContent(b, ToXContent.EMPTY_PARAMS);
b.endObject();
}), m -> m.getMethodComponentContext().getName());
}), m -> {
if (m == null) {
throw new IllegalArgumentException("Mapping update for knn_vector fields is not supported. " +
"Cannot update mapping without the original method configuration.");
}
return m.getMethodComponentContext().getName();
});

protected final Parameter<String> mode = Parameter.restrictedStringParam(
KNNConstants.MODE_PARAMETER,
Expand Down

0 comments on commit fc14165

Please sign in to comment.