blob: d6dc9962f6277c84337b33ddbfc642564a706813 (
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
32
33
34
|
<?php
namespace Elastica\Filter;
/**
* Exists query.
*
* @author Oleg Cherniy <oleg.cherniy@gmail.com>
*
* @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-filter.html
*/
class Exists extends AbstractFilter
{
/**
* Construct exists filter.
*
* @param string $field
*/
public function __construct($field)
{
$this->setField($field);
}
/**
* Set field.
*
* @param string $field
*
* @return $this
*/
public function setField($field)
{
return $this->setParam('field', $field);
}
}
|