Skip to content
Snippets Groups Projects
Commit c7bcac15 authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

removed value parameter for ExistsFilter

parent b59f8def
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ use ONGR\ElasticsearchBundle\DSL\BuilderInterface;
/**
* Represents Elasticsearch "exists" filter.
*
* @link http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-exists-filter.html
*/
class ExistsFilter implements BuilderInterface
{
......@@ -23,19 +25,12 @@ class ExistsFilter implements BuilderInterface
*/
private $field;
/**
* @var string
*/
private $value;
/**
* @param string $field Field value.
* @param string $value Field name.
*/
public function __construct($field, $value)
public function __construct($field)
{
$this->field = $field;
$this->value = $value;
}
/**
......@@ -52,7 +47,7 @@ class ExistsFilter implements BuilderInterface
public function toArray()
{
return [
$this->field => $this->value,
'field' => $this->field,
];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment