diff --git a/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java b/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java index 15ae1d6ce..08d6ef014 100644 --- a/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java +++ b/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java @@ -48,7 +48,7 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser { LongFunction finalKnnfunc = knnfunc; LongFunction bfunc = - l -> new SearchRequest.Builder() + l -> new SearchRequest.Builder().size(100) .index(targetF.apply(1)) .query(new Query.Builder().knn(finalKnnfunc.apply(l).build()).build());