[−][src]Struct rs_es::operations::search::SearchQueryOperation
Methods
impl<'a, 'b> SearchQueryOperation<'a, 'b>
[src]
pub fn new(client: &'a mut Client) -> SearchQueryOperation<'a, 'b>
[src]
pub fn with_indexes(&mut self, indexes: &'b [&'b str]) -> &mut Self
[src]
pub fn with_types(&mut self, doc_types: &'b [&'b str]) -> &mut Self
[src]
pub fn with_query(&mut self, query: &'b Query) -> &mut Self
[src]
pub fn with_timeout(&mut self, timeout: &'b str) -> &mut Self
[src]
pub fn with_from(&mut self, from: u64) -> &mut Self
[src]
pub fn with_size(&mut self, size: u64) -> &mut Self
[src]
pub fn with_version(&mut self, version: bool) -> &mut Self
[src]
pub fn with_terminate_after(&mut self, terminate_after: u64) -> &mut Self
[src]
pub fn with_stats<S>(&mut self, stats: &[S]) -> &mut Self where
S: ToString,
[src]
S: ToString,
pub fn with_min_score(&mut self, min_score: f64) -> &mut Self
[src]
pub fn with_sort(&mut self, sort: &'b Sort) -> &mut Self
[src]
pub fn with_track_scores(&mut self, track_scores: bool) -> &mut Self
[src]
pub fn with_source(&mut self, source: Source<'b>) -> &mut Self
[src]
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"]))
pub fn with_aggs(&mut self, aggs: &'b Aggregations) -> &mut Self
[src]
Specify any aggregations
pub fn with_highlight(&mut self, highlight: &'b Highlight) -> &mut Self
[src]
Specify fields to highlight
pub fn with_routing<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
[src]
pub fn with_search_type<T: Into<OptionVal>>(
&'a mut self,
val: T
) -> &'a mut Self
[src]
&'a mut self,
val: T
) -> &'a mut Self
pub fn with_query_cache<T: Into<OptionVal>>(
&'a mut self,
val: T
) -> &'a mut Self
[src]
&'a mut self,
val: T
) -> &'a mut Self
pub fn with_ignore_unavailable<T: Into<OptionVal>>(
&'a mut self,
val: T
) -> &'a mut Self
[src]
&'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
[src]
&'a mut self,
val: T
) -> &'a mut Self
pub fn with_expand_wildcards<T: Into<OptionVal>>(
&'a mut self,
val: T
) -> &'a mut Self
[src]
&'a mut self,
val: T
) -> &'a mut Self
pub fn send<T>(&'b mut self) -> Result<SearchResult<T>, EsError> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
Performs the search with the specified query and options
pub fn scan<T>(
&'b mut self,
scroll: &'b Duration
) -> Result<ScanResult<T>, EsError> where
T: DeserializeOwned,
[src]
&'b mut self,
scroll: &'b Duration
) -> Result<ScanResult<T>, EsError> where
T: DeserializeOwned,
Begins a scan with the specified query and options
Trait Implementations
impl<'a, 'b> Debug for SearchQueryOperation<'a, 'b>
[src]
Auto Trait Implementations
impl<'a, 'b> Send for SearchQueryOperation<'a, 'b>
impl<'a, 'b> Sync for SearchQueryOperation<'a, 'b>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,