Struct rs_es::operations::search::SearchResult [] [src]

pub struct SearchResult {
    pub took: u64,
    pub timed_out: bool,
    pub shards: ShardCountResult,
    pub hits: SearchHitsResult,
    pub aggs: Option<AggregationsResult>,
}

Fields

took
timed_out
shards
hits
aggs

Methods

impl SearchResult

fn aggs_ref<'a>(&'a self) -> Option<&'a AggregationsResult>

Take a reference to any aggregations in this result

Trait Implementations

impl<'a> From<&'a Json> for SearchResult

fn from(r: &'a Json) -> SearchResult