Data API - updated delete one operation

This commit is contained in:
Madhavan Sridharan 2024-05-15 13:22:59 -04:00
parent ce3bbe52d5
commit c4ac5e525c

View File

@ -56,12 +56,11 @@ public class DataApiDeleteOneOpDispenser extends DataApiOpDispenser {
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;
}