func (a *BucketSortAggregation) Size(size int) *BucketSortAggregation {
	a.size = size
	return a
}
Size adds the "size" parameter to the aggregation.
package elastic
type BucketSortAggregation struct {
	sorters   []Sorter
	from      int
	size      int
	gapPolicy string
	meta map[string]interface{}
}
func NewBucketSortAggregation() *BucketSortAggregation {
	return &BucketSortAggregation{
		size: -1,
	}
}
func (a *BucketSortAggregation) Sort(field string, ascending bool) *BucketSortAggregation {
	a.sorters = append(a.sorters, SortInfo{Field: field, Ascending: ascending})
	return a
}
func (a *BucketSortAggregation) SortWithInfo(info SortInfo) *BucketSortAggregation {
	a.sorters = append(a.sorters, info)
	return a
}
func (a *BucketSortAggregation) From(from int) *BucketSortAggregation {
	a.from = from
	return a
}