| 1234567891011121314151617181920212223 |
- <?php
- namespace Elastica\Aggregation;
- /**
- * Class Children.
- *
- * @see https://www.elastic.co/guide/en/elasticsearch/reference/1.7/search-aggregations-bucket-children-aggregation.html
- */
- class Children extends AbstractAggregation
- {
- /**
- * Set the type for this aggregation.
- *
- * @param string $field the child type the buckets in the parent space should be mapped to
- *
- * @return $this
- */
- public function setType($type)
- {
- return $this->setParam('type', $type);
- }
- }
|