Skip to content

Commit 84a3a57

Browse files
bck
1 parent fde3877 commit 84a3a57

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

server/src/main/java/org/elasticsearch/action/search/SearchScrollAsyncAction.java

-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.elasticsearch.core.Nullable;
2121
import org.elasticsearch.search.SearchPhaseResult;
2222
import org.elasticsearch.search.SearchShardTarget;
23-
import org.elasticsearch.search.aggregations.AggregationReduceContext;
2423
import org.elasticsearch.search.internal.InternalScrollSearchRequest;
2524
import org.elasticsearch.search.internal.SearchContext;
2625
import org.elasticsearch.search.internal.ShardSearchContextId;
@@ -313,17 +312,6 @@ protected Transport.Connection getConnection(String clusterAlias, DiscoveryNode
313312
* @param queryResults a list of non-null query shard results
314313
*/
315314
protected static SearchPhaseController.ReducedQueryPhase reducedScrollQueryPhase(Collection<? extends SearchPhaseResult> queryResults) {
316-
AggregationReduceContext.Builder aggReduceContextBuilder = new AggregationReduceContext.Builder() {
317-
@Override
318-
public AggregationReduceContext forPartialReduction() {
319-
throw new UnsupportedOperationException("Scroll requests don't have aggs");
320-
}
321-
322-
@Override
323-
public AggregationReduceContext forFinalReduction() {
324-
throw new UnsupportedOperationException("Scroll requests don't have aggs");
325-
}
326-
};
327315
final SearchPhaseController.TopDocsStats topDocsStats = new SearchPhaseController.TopDocsStats(
328316
SearchContext.TRACK_TOTAL_HITS_ACCURATE
329317
);

0 commit comments

Comments
 (0)