Skip to content

Commit 508c7ba

Browse files
chore: add omit_zero_term_query option to bool query doc
1 parent f3b9f37 commit 508c7ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/query-dsl/bool-query.asciidoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ POST _search
5454
{ "term" : { "tags" : "deployed" } }
5555
],
5656
"minimum_should_match" : 1,
57+
"omit_zero_term_query" : false
5758
"boost" : 1.0
5859
}
5960
}
@@ -206,3 +207,9 @@ response. Typically, this adds a small overhead to a request. However, using
206207
computationally expensive named queries on a large number of hits may add
207208
significant overhead. For example, named queries in combination with a
208209
`top_hits` aggregation on many buckets may lead to longer response times.
210+
211+
[[bool-omit-zero-term-query]]
212+
==== Using `omit_zero_term_query`
213+
214+
(Optional, Boolean) If set to `true`, the query will be omitted if the analyzer
215+
removes all tokens using a stop filter or similar. Defaults to `false`.

0 commit comments

Comments
 (0)