And even if going down the pruning route, I think this would be useful. Eg. assuming all your bucket ords get as many documents, under 2 levels of terms aggregation (size=10), each bucket would only get 1% of the doc IDs collected by the query.