pub struct MultiSearchQuery<'a, 'b, Http: HttpClient = DefaultHttpClient> {
pub queries: Vec<SearchQuery<'b, Http>>,
/* private fields */
}Fields§
§queries: Vec<SearchQuery<'b, Http>>Implementations§
Source§impl<'a, 'b, Http: HttpClient> MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http: HttpClient> MultiSearchQuery<'a, 'b, Http>
pub fn new(client: &'a Client<Http>) -> MultiSearchQuery<'a, 'b, Http>
pub fn with_search_query( &mut self, search_query: SearchQuery<'b, Http>, ) -> &mut MultiSearchQuery<'a, 'b, Http>
pub fn with_search_query_and_weight( &mut self, search_query: SearchQuery<'b, Http>, weight: f32, ) -> &mut MultiSearchQuery<'a, 'b, Http>
pub fn with_search_query_and_options( &mut self, search_query: SearchQuery<'b, Http>, options: QueryFederationOptions, ) -> &mut MultiSearchQuery<'a, 'b, Http>
Sourcepub fn with_federation(
self,
federation: FederationOptions,
) -> FederatedMultiSearchQuery<'a, 'b, Http>
pub fn with_federation( self, federation: FederationOptions, ) -> FederatedMultiSearchQuery<'a, 'b, Http>
Adds the federation parameter, turning the search into a federated search.
Sourcepub async fn execute<T: 'static + DeserializeOwned + Send + Sync>(
&'a self,
) -> Result<MultiSearchResponse<T>, Error>
pub async fn execute<T: 'static + DeserializeOwned + Send + Sync>( &'a self, ) -> Result<MultiSearchResponse<T>, Error>
Execute the query and fetch the results.
Trait Implementations§
Source§impl<'a, 'b, Http: Clone + HttpClient> Clone for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http: Clone + HttpClient> Clone for MultiSearchQuery<'a, 'b, Http>
Source§fn clone(&self) -> MultiSearchQuery<'a, 'b, Http>
fn clone(&self) -> MultiSearchQuery<'a, 'b, Http>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, 'b, Http: Debug + HttpClient> Debug for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http: Debug + HttpClient> Debug for MultiSearchQuery<'a, 'b, Http>
Source§impl<'a, 'b, Http: HttpClient> Serialize for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http: HttpClient> Serialize for MultiSearchQuery<'a, 'b, Http>
Auto Trait Implementations§
impl<'a, 'b, Http> Freeze for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http> RefUnwindSafe for MultiSearchQuery<'a, 'b, Http>where
Http: RefUnwindSafe,
impl<'a, 'b, Http> Send for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http> Sync for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http> Unpin for MultiSearchQuery<'a, 'b, Http>
impl<'a, 'b, Http> UnwindSafe for MultiSearchQuery<'a, 'b, Http>where
Http: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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