Enum elasticsearch_dsl::search::params::TrackTotalHits [−][src]
Expand description
Control how the total number of hits should be tracked.
When set to Track with a value true, the response will always track the number of hits that
match the query accurately.
When set to Count with an integer value n, the response accurately tracks the total
hit count that match the query up to n documents.
Variants
Track(bool)Whether to accurately track the number of hits that match the query accurately
Tuple Fields of Track
0: boolCount(i64)Accurately track the number of hits up to the specified value
Tuple Fields of Count
0: i64Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TrackTotalHits
impl Send for TrackTotalHits
impl Sync for TrackTotalHits
impl Unpin for TrackTotalHits
impl UnwindSafe for TrackTotalHits
Blanket Implementations
Mutably borrows from an owned value. Read more