Struct rs_es::operations::search::ScanResult
[−]
[src]
pub struct ScanResult<T: Deserialize> { pub scroll_id: String, pub took: u64, pub timed_out: bool, pub shards: ShardCountResult, pub hits: SearchHitsResult<T>, pub aggs: Option<AggregationsResult>, }
Fields
scroll_id: String
took: u64
timed_out: bool
hits: SearchHitsResult<T>
aggs: Option<AggregationsResult>
Methods
impl<T> ScanResult<T> where T: Deserialize + Debug
[src]
fn iter(self, client: &mut Client, scroll: Duration) -> ScanIterator<T>
Returns an iterator from which hits can be read
fn scroll(&mut self, client: &mut Client, scroll: &Duration) -> Result<SearchResult<T>, EsError>
Calls the /_search/scroll
ES end-point for the next page
fn close(&self, client: &mut Client) -> Result<(), EsError>
Calls ES to close the server-side part of the scan/scroll operation