From fa4ff13a8910f4fef8be3d21cd03a3b420cc2866 Mon Sep 17 00:00:00 2001 From: Mark Wolters Date: Thu, 8 Feb 2024 18:47:43 -0400 Subject: [PATCH] adding size parameter --- .../adapter/opensearch/dispensers/KnnSearchOpDispenser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());