Struct elasticsearch_dsl::search::queries::specialized::PercolateQuery [−][src]
pub struct PercolateQuery<T: PercolateMarker> { /* fields omitted */ }
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" })]);
To percolate indexed document:
Query::percolate("field", PercolateLookup::new("index_name", "document_id"));
Query::percolate_lookup("field", "index_name", "document_id");
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolate-query.html
Implementations
Routing to be used to fetch document to percolate
Preference to be used to fetch document to percolate
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for PercolateQuery<T> where
T: RefUnwindSafe,
impl<T> Send for PercolateQuery<T> where
T: Send,
impl<T> Sync for PercolateQuery<T> where
T: Sync,
impl<T> Unpin for PercolateQuery<T> where
T: Unpin,
impl<T> UnwindSafe for PercolateQuery<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more