Skip to content

Commit

Permalink
Fixed scroll size setting
Browse files Browse the repository at this point in the history
  • Loading branch information
EinsamHauer committed Jun 27, 2022
1 parent 0af243e commit 26baa81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>net.iponweb.disthene.reader</groupId>
<artifactId>disthene-reader</artifactId>
<packaging>jar</packaging>
<version>2.0.6</version>
<version>2.0.7</version>
<name>disthene-reader</name>
<url>http://maven.apache.org</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public String getPathsAsJsonArray(String tenant, String wildcard) throws TooMuch
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder()
.query(queryBuilder);

if (indexConfiguration.getMaxPaths() < maxResultWindow) sourceBuilder.size(indexConfiguration.getMaxPaths());
sourceBuilder.size(Math.min(Math.min(indexConfiguration.getMaxPaths(), maxResultWindow), indexConfiguration.getScroll()));

SearchRequest request = new SearchRequest(indexConfiguration.getIndex())
.source(sourceBuilder)
Expand Down

0 comments on commit 26baa81

Please sign in to comment.