mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-24 08:00:00 -06:00
adding size parameter
This commit is contained in:
parent
5b48695069
commit
fa4ff13a89
@ -48,7 +48,7 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser {
|
|||||||
|
|
||||||
LongFunction<KnnQuery.Builder> finalKnnfunc = knnfunc;
|
LongFunction<KnnQuery.Builder> finalKnnfunc = knnfunc;
|
||||||
LongFunction<SearchRequest.Builder> bfunc =
|
LongFunction<SearchRequest.Builder> bfunc =
|
||||||
l -> new SearchRequest.Builder()
|
l -> new SearchRequest.Builder().size(100)
|
||||||
.index(targetF.apply(1))
|
.index(targetF.apply(1))
|
||||||
.query(new Query.Builder().knn(finalKnnfunc.apply(l).build()).build());
|
.query(new Query.Builder().knn(finalKnnfunc.apply(l).build()).build());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user