opensearch-dsl 0.3.1

Strongly typed OpenSearch DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Relation to total number of matched documents
#[derive(Default, Debug, Copy, Clone, Deserialize, Serialize, PartialEq, Eq)]
pub enum TotalHitsRelation {
    /// When `track_total_hits` is `false` (default), OpenSearch returns that
    /// there have been more than 10,000 documents
    #[serde(rename = "gte")]
    GreaterThanOrEqualTo,

    /// When there are less than 10,000 documents or `track_total_hits` is set
    /// to `true`, exact number of matched documents will be brought back
    #[serde(rename = "eq")]
    #[default]
    Equal,
}