Skip to content
Snippets Groups Projects
Commit ec849758 authored by Aivaras Gotovskis's avatar Aivaras Gotovskis
Browse files

Add missing filter doc.

parent 07a9506f
No related branches found
No related tags found
No related merge requests found
# Missing Filter
> More info about missing filter is in the [official elasticsearch docs][1]
Returns documents that have only null values or no value in the original field.
## Simple example
```JSON
{
"filter" : {
"missing" : { "field" : "user" }
}
}
```
And now the query via DSL:
```php
$missingFilter = new MissingFilter('user');
$search = new Search();
$search->addFilter($missingFilter);
$queryArray = $search->toArray();
```
[1]: hhttps://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-missing-filter.html
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