blob: 80e9495c7d3c59bddea3ea96b11be801fdce37e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[[query-dsl-exists-filter]]
=== Exists Filter
Filters documents where a specific field has a value in them.
[source,js]
--------------------------------------------------
{
"constant_score" : {
"filter" : {
"exists" : { "field" : "user" }
}
}
}
--------------------------------------------------
[float]
==== Caching
The result of the filter is always cached.
|