Method | Description | |
---|---|---|
__construct ( string $name, string $field, integer $interval ) | ||
setInterval ( integer $interval ) | Set the interval by which documents will be bucketed. | |
setMinimumDocumentCount ( integer $count ) | Set the minimum number of documents which must fall into a bucket in order for the bucket to be returned. | |
setOrder ( string $order, string $direction ) | Set the bucket sort order. |
public setInterval ( integer $interval ) | ||
$interval | integer |
public setMinimumDocumentCount ( integer $count ) | ||
$count | integer | set to 0 to include empty buckets |