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§
Source§impl PercolateQuery
impl PercolateQuery
pub fn serialize<__S>(
__self: &PercolateQuery,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
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
Source§impl PartialEq<PercolateQuery> for Query
impl PartialEq<PercolateQuery> for Query
Source§impl PartialEq<Query> for PercolateQuery
impl PartialEq<Query> for PercolateQuery
Source§impl PartialEq for PercolateQuery
impl PartialEq for PercolateQuery
Source§impl Serialize for PercolateQuery
impl Serialize for PercolateQuery
impl Eq for PercolateQuery
impl StructuralPartialEq for PercolateQuery
Auto Trait Implementations§
impl Freeze for PercolateQuery
impl RefUnwindSafe for PercolateQuery
impl Send for PercolateQuery
impl Sync for PercolateQuery
impl Unpin for PercolateQuery
impl UnwindSafe for PercolateQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more