1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
/// Indicates whether no documents are returned if the `analyzer` removes all
/// tokens, such as when using a `stop` filter.
#[derive(Debug, Clone, PartialEq, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum ZeroTermsQuery {
    /// No documents are returned if the `analyzer` removes all tokens.
    None,

    /// Returns all documents, similar to a
    /// [`match_all`](crate::queries::MatchAllQuery)
    /// query.
    All,
}