mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-27 00:27:25 -04:00
14 lines
487 B
Text
14 lines
487 B
Text
[[java-query-dsl-missing-query]]
|
||
==== Missing Query
|
||
|
||
See {ref}/query-dsl-missing-query.html[Missing Query]
|
||
|
||
[source,java]
|
||
--------------------------------------------------
|
||
QueryBuilder qb = missingQuery("user", <1>
|
||
true, <2>
|
||
true); <3>
|
||
--------------------------------------------------
|
||
<1> field
|
||
<2> find missing field with an explicit `null` value
|
||
<3> find missing field that doesn’t exist
|