__construct(string $name, string $field)
the name of this aggregation
the field on which to perform this aggregation
setField(string $field) : $this
Set the field for this aggregation.
the name of the document field on which to perform this aggregation
setPrecision(integer $precision) : $this
Set the precision for this aggregation.
an integer between 1 and 12, inclusive. Defaults to 5.
setSize(integer $size) : $this
Set the maximum number of buckets to return.
defaults to 10,000
setShardSize(integer $shardSize) : $this
Set the number of results returned from each shard.