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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PercolateQuery
impl Debug for PercolateQuery
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 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 Queries
impl From<PercolateQuery> for Queries
sourcefn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PercolateQuery> for PercolateQuery
impl PartialEq<PercolateQuery> for PercolateQuery
sourcefn eq(&self, other: &PercolateQuery) -> bool
fn eq(&self, other: &PercolateQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PercolateQuery) -> bool
fn ne(&self, other: &PercolateQuery) -> bool
This method tests for !=
.
sourceimpl PartialEq<PercolateQuery> for Query
impl PartialEq<PercolateQuery> for Query
sourceimpl PartialEq<Query> for PercolateQuery
impl PartialEq<Query> for PercolateQuery
sourceimpl Serialize for PercolateQuery
impl Serialize 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 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