elasticsearch_dsl/search/queries/params/zero_terms_query.rs
1/// Indicates whether no documents are returned if the `analyzer` removes all
2/// tokens, such as when using a `stop` filter.
3#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
4#[serde(rename_all = "snake_case")]
5pub enum ZeroTermsQuery {
6 /// No documents are returned if the `analyzer` removes all tokens.
7 None,
8
9 /// Returns all documents, similar to a
10 /// [`match_all`](crate::queries::MatchAllQuery)
11 /// query.
12 All,
13}