pub struct SearchQueryOperation<'a, 'b> { /* private fields */ }Implementations§
Source§impl<'a, 'b> SearchQueryOperation<'a, 'b>
impl<'a, 'b> SearchQueryOperation<'a, 'b>
pub fn new(client: &'a mut Client) -> Self
pub fn with_indexes(&mut self, indexes: &'b [&'b str]) -> &mut Self
pub fn with_types(&mut self, doc_types: &'b [&'b str]) -> &mut Self
pub fn with_query(&mut self, query: &'b Query) -> &mut Self
pub fn with_timeout(&mut self, timeout: &'b str) -> &mut Self
pub fn with_from(&mut self, from: u64) -> &mut Self
pub fn with_size(&mut self, size: u64) -> &mut Self
pub fn with_version(&mut self, version: bool) -> &mut Self
pub fn with_terminate_after(&mut self, terminate_after: u64) -> &mut Self
pub fn with_stats<S>(&mut self, stats: &[S]) -> &mut Selfwhere
S: ToString,
pub fn with_min_score(&mut self, min_score: f64) -> &mut Self
pub fn with_sort(&mut self, sort: &'b Sort) -> &mut Self
pub fn with_track_scores(&mut self, track_scores: bool) -> &mut Self
Sourcepub fn with_source(&mut self, source: Source<'b>) -> &mut Self
pub fn with_source(&mut self, source: Source<'b>) -> &mut Self
Specify source filtering, by default full source will be returned in a hit
To switch-off source document in each hit: with_source(Source::Off).
To include fields: with_source(Source::include(&["field_name"])),
To exclude fields: with_source(Source::exclude(&["field_name"])),
To include and exclude: with_source(Source::filter(&["include"], &["exclude"]))
Sourcepub fn with_aggs(&mut self, aggs: &'b Aggregations<'_>) -> &mut Self
pub fn with_aggs(&mut self, aggs: &'b Aggregations<'_>) -> &mut Self
Specify any aggregations
Sourcepub fn with_highlight(&mut self, highlight: &'b Highlight) -> &mut Self
pub fn with_highlight(&mut self, highlight: &'b Highlight) -> &mut Self
Specify fields to highlight
pub fn with_routing<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_search_type<T: Into<OptionVal>>( &'a mut self, val: T, ) -> &'a mut Self
pub fn with_query_cache<T: Into<OptionVal>>( &'a mut self, val: T, ) -> &'a mut Self
pub fn with_allow_no_indices<T: Into<OptionVal>>( &'a mut self, val: T, ) -> &'a mut Self
pub fn with_expand_wildcards<T: Into<OptionVal>>( &'a mut self, val: T, ) -> &'a mut Self
pub fn with_explain<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
Sourcepub fn send<T>(&'b mut self) -> Result<SearchResult<T>, EsError>where
T: DeserializeOwned,
pub fn send<T>(&'b mut self) -> Result<SearchResult<T>, EsError>where
T: DeserializeOwned,
Performs the search with the specified query and options
Sourcepub fn scan<T>(
&'b mut self,
scroll: &'b Duration,
) -> Result<ScanResult<T>, EsError>where
T: DeserializeOwned,
pub fn scan<T>(
&'b mut self,
scroll: &'b Duration,
) -> Result<ScanResult<T>, EsError>where
T: DeserializeOwned,
Begins a scan with the specified query and options
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for SearchQueryOperation<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for SearchQueryOperation<'a, 'b>
impl<'a, 'b> Send for SearchQueryOperation<'a, 'b>
impl<'a, 'b> Sync for SearchQueryOperation<'a, 'b>
impl<'a, 'b> Unpin for SearchQueryOperation<'a, 'b>
impl<'a, 'b> !UnwindSafe for SearchQueryOperation<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more