blob: 6fe43e3d4d8e297571285cb54999b70ee33ee594 (
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
35
|
<?php
namespace Elastica\Filter;
/**
* Exists query
*
* @category Xodoa
* @package Elastica
* @author Oleg Cherniy <oleg.cherniy@gmail.com>
* @link http://www.elasticsearch.org/guide/reference/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 \Elastica\Filter\Exists
*/
public function setField($field)
{
return $this->setParam('field', $field);
}
}
|