allow setting of terms aggregation size