From 0e2d33b4a446af033db48284737a62b9cc8c99bb Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Fri, 30 May 2014 12:23:16 +0200 Subject: [PATCH] [BUILD] Fix compile error --- .../search/aggregations/bucket/tophits/TopHitsAggregator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/search/aggregations/bucket/tophits/TopHitsAggregator.java b/src/main/java/org/elasticsearch/search/aggregations/bucket/tophits/TopHitsAggregator.java index 9953d3f8ccd..5ea62de1484 100644 --- a/src/main/java/org/elasticsearch/search/aggregations/bucket/tophits/TopHitsAggregator.java +++ b/src/main/java/org/elasticsearch/search/aggregations/bucket/tophits/TopHitsAggregator.java @@ -96,7 +96,7 @@ public class TopHitsAggregator extends BucketsAggregator implements ScorerAware @Override public InternalAggregation buildEmptyAggregation() { - return new InternalTopHits(name, topHitsContext.size(), topHitsContext.sort(), Lucene.EMPTY_TOP_DOCS, InternalSearchHits.empty()); + return new InternalTopHits(name, topHitsContext.from(), topHitsContext.size(), topHitsContext.sort(), Lucene.EMPTY_TOP_DOCS, InternalSearchHits.empty()); } @Override