Struct elasticsearch_dsl::search::queries::specialized::PercolateQuery
source · [−]pub struct PercolateQuery { /* private fields */ }Expand description
The percolate query can be used to match queries stored in an index. The percolate query
itself contains the document that will be used as query to match with the stored queries.
To percolate single document:
Query::percolate("field", json!({ "message": "search text" }));To percolate multiple documents:
Query::percolate("field", vec![json!({ "message": "search text" }), json!({ "message": "another search text" })]);https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolate-query.html
Implementations
sourceimpl PercolateQuery
impl PercolateQuery
Trait Implementations
sourceimpl Clone for PercolateQuery
impl Clone for PercolateQuery
sourcefn clone(&self) -> PercolateQuery
fn clone(&self) -> PercolateQuery
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PercolateQuery
impl Debug for PercolateQuery
sourceimpl From<PercolateQuery> for Option<Query>
impl From<PercolateQuery> for Option<Query>
sourcefn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PercolateQuery> for Query
impl From<PercolateQuery> for Query
sourcefn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Converts to this type from the input type.
sourceimpl IntoIterator for PercolateQuery
impl IntoIterator for PercolateQuery
type Item = PercolateQuery
type Item = PercolateQuery
The type of the elements being iterated over.
type IntoIter = IntoIter<<PercolateQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<PercolateQuery as IntoIterator>::Item>
Which kind of iterator are we turning this into?
sourceimpl PartialEq<PercolateQuery> for PercolateQuery
impl PartialEq<PercolateQuery> for PercolateQuery
sourcefn eq(&self, other: &PercolateQuery) -> bool
fn eq(&self, other: &PercolateQuery) -> bool
sourceimpl PartialEq<PercolateQuery> for Query
impl PartialEq<PercolateQuery> for Query
sourcefn eq(&self, other: &PercolateQuery) -> bool
fn eq(&self, other: &PercolateQuery) -> bool
sourceimpl Serialize for PercolateQuery
impl Serialize for PercolateQuery
impl Eq for PercolateQuery
impl StructuralEq for PercolateQuery
impl StructuralPartialEq for PercolateQuery
Auto Trait Implementations
impl RefUnwindSafe for PercolateQuery
impl Send for PercolateQuery
impl Sync for PercolateQuery
impl Unpin for PercolateQuery
impl UnwindSafe for PercolateQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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