Struct elasticsearch_dsl::search::queries::specialized::PercolateLookupQuery
source · [−]pub struct PercolateLookupQuery { /* private fields */ }
Expand description
In order to percolate a newly indexed document, the percolate query can
be used. Based on the response from an index request, the _id
and other meta information can
be used to immediately percolate the newly added document.
To percolate indexed document:
Query::percolate_lookup("field", "index_name", "document_id");
Implementations
sourceimpl PercolateLookupQuery
impl PercolateLookupQuery
sourcepub fn routing<S>(self, routing: S) -> Self where
S: ToString,
pub fn routing<S>(self, routing: S) -> Self where
S: ToString,
Routing to be used to fetch document to percolate
sourcepub fn preference<S>(self, preference: S) -> Self where
S: ToString,
pub fn preference<S>(self, preference: S) -> Self where
S: ToString,
Preference to be used to fetch document to percolate
Trait Implementations
sourceimpl Clone for PercolateLookupQuery
impl Clone for PercolateLookupQuery
sourcefn clone(&self) -> PercolateLookupQuery
fn clone(&self) -> PercolateLookupQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PercolateLookupQuery
impl Debug for PercolateLookupQuery
sourceimpl From<PercolateLookupQuery> for Query
impl From<PercolateLookupQuery> for Query
sourcefn from(q: PercolateLookupQuery) -> Self
fn from(q: PercolateLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PercolateLookupQuery> for Option<Query>
impl From<PercolateLookupQuery> for Option<Query>
sourcefn from(q: PercolateLookupQuery) -> Self
fn from(q: PercolateLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PercolateLookupQuery> for Queries
impl From<PercolateLookupQuery> for Queries
sourcefn from(q: PercolateLookupQuery) -> Self
fn from(q: PercolateLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PercolateLookupQuery> for PercolateLookupQuery
impl PartialEq<PercolateLookupQuery> for PercolateLookupQuery
sourcefn eq(&self, other: &PercolateLookupQuery) -> bool
fn eq(&self, other: &PercolateLookupQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PercolateLookupQuery) -> bool
fn ne(&self, other: &PercolateLookupQuery) -> bool
This method tests for !=
.
sourceimpl PartialEq<PercolateLookupQuery> for Query
impl PartialEq<PercolateLookupQuery> for Query
sourceimpl PartialEq<Query> for PercolateLookupQuery
impl PartialEq<Query> for PercolateLookupQuery
sourceimpl Serialize for PercolateLookupQuery
impl Serialize for PercolateLookupQuery
impl StructuralPartialEq for PercolateLookupQuery
Auto Trait Implementations
impl RefUnwindSafe for PercolateLookupQuery
impl Send for PercolateLookupQuery
impl Sync for PercolateLookupQuery
impl Unpin for PercolateLookupQuery
impl UnwindSafe for PercolateLookupQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more