Skip to content

Commit

Permalink
Data API - updated delete one operation
Browse files Browse the repository at this point in the history
  • Loading branch information
msmygit committed May 15, 2024
1 parent ce3bbe5 commit c4ac5e5
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ private LongFunction<DataApiDeleteOneOp> createOpFunction(ParsedOp op) {
private DeleteOneOptions getDeleteOneOptions(ParsedOp op, long l) {
DeleteOneOptions options = new DeleteOneOptions();
Sort sort = getSortFromOp(op, l);
if (sort != null) {
options = options.sort(sort);
}
float[] vector = getVectorFromOp(op, l);
if (vector != null) {
options = options.sort(vector, sort);
if (sort != null) {
options = (vector != null) ? options.sort(vector, sort) : options.sort(sort);
} else if (vector != null) {
options = options.sort(vector, null);
}
return options;
}
Expand Down

0 comments on commit c4ac5e5

Please sign in to comment.