blob: b882aba04c134e349dd359f9d856378db4e6030a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
namespace Elastica\Aggregation;
/**
* Class Missing
* @package Elastica\Aggregation
* @link http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-bucket-missing-aggregation.html
*/
class Missing extends AbstractAggregation
{
/**
* @param string $name the name of this aggregation
* @param string $field the field on which to perform this aggregation
*/
public function __construct($name, $field)
{
parent::__construct($name);
$this->setField($field);
}
/**
* Set the field for this aggregation
* @param string $field the name of the document field on which to perform this aggregation
* @return Missing
*/
public function setField($field)
{
return $this->setParam('field', $field);
}
}
|