adding size parameter

This commit is contained in:
Mark Wolters 2024-02-08 18:47:43 -04:00
parent 5b48695069
commit fa4ff13a89

View File

@ -48,7 +48,7 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser {
LongFunction<KnnQuery.Builder> finalKnnfunc = knnfunc;
LongFunction<SearchRequest.Builder> 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());