elasticsearch_dsl/search/response/total_hits_relation.rs
1/// Relation to total number of matched documents
2#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)]
3pub enum TotalHitsRelation {
4 /// When `track_total_hits` is `false` (default), Elasticsearch returns that
5 /// there have been more than 10,000 documents
6 #[serde(rename = "gte")]
7 GreaterThanOrEqualTo,
8
9 /// When there are less than 10,000 documents or `track_total_hits` is set
10 /// to `true`, exact number of matched documents will be brought back
11 #[serde(rename = "eq")]
12 Equal,
13}