Skip to content

Commit ceb78f1

Browse files
author
Clément Tourrière
committed
Migrate plugin to elasticsearch 6.5
1 parent 7e6ae89 commit ceb78f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
es_version = 6.4.3
2-
plugin_version = 6.4.3.0
1+
es_version = 6.5.0
2+
plugin_version = 6.5.0.0

src/main/java/org/opendatasoft/elasticsearch/search/aggregations/bucket/PathHierarchyAggregatorFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected Aggregator doCreateInternal(
9595
// heuristic to avoid any wrong-ranking caused by distributed
9696
// counting
9797
bucketCountThresholds.setShardSize(BucketUtils.suggestShardSideQueueSize(bucketCountThresholds.getRequiredSize(),
98-
context.numberOfShards()));
98+
context.numberOfShards() == 1));
9999
}
100100
bucketCountThresholds.ensureValidity();
101101
return new PathHierarchyAggregator(

0 commit comments

Comments
 (0)