Skip to content

Commit

Permalink
Setting the size to k.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Dec 3, 2024
1 parent 0e240b8 commit 6720e5c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public QuerySetRunResult run(final String querySetId, final String judgmentsId,
final SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.query(QueryBuilders.wrapperQuery(q));
searchSourceBuilder.from(0);
searchSourceBuilder.size(10);
// TODO: If k is > 10, we'll need to page through these.
searchSourceBuilder.size(k);

String[] includeFields = new String[] {idField};
String[] excludeFields = new String[] {};
Expand Down

0 comments on commit 6720e5c

Please sign in to comment.