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§
Trait Implementations§
source§impl Clone for PercolateQuery
impl Clone for PercolateQuery
source§fn clone(&self) -> PercolateQuery
fn clone(&self) -> PercolateQuery
Returns a copy 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 Debug for PercolateQuery
impl Debug for PercolateQuery
source§impl From<PercolateQuery> for Option<Query>
impl From<PercolateQuery> for Option<Query>
source§fn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Converts to this type from the input type.
source§impl From<PercolateQuery> for Query
impl From<PercolateQuery> for Query
source§fn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Converts to this type from the input type.
source§impl 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?