Skip to main content

QueryContainer

Struct QueryContainer 

Source
pub struct QueryContainer {
Show 56 fields pub nested: Option<String>, pub parent_id: Option<String>, pub field_masking_span: Option<String>, pub match_phrase: Option<Value>, pub intervals: Option<Value>, pub boosting: Option<String>, pub percolate: Option<String>, pub span_near: Option<String>, pub span_not: Option<String>, pub geo_bounding_box: Option<String>, pub match_bool_prefix: Option<Value>, pub prefix: Option<Value>, pub more_like_this: Option<String>, pub span_multi: Option<String>, pub common: Option<Value>, pub span_within: Option<String>, pub ids: Option<String>, pub distance_feature: Option<String>, pub geo_polygon: Option<String>, pub match_all: Option<String>, pub range: Option<Value>, pub combined_fields: Option<String>, pub fuzzy: Option<Value>, pub match_phrase_prefix: Option<Value>, pub function_score: Option<String>, pub geo_shape: Option<String>, pub constant_score: Option<String>, pub hybrid: Option<String>, pub multi_match: Option<String>, pub pinned: Option<String>, pub rank_feature: Option<String>, pub neural: Option<Value>, pub script: Option<String>, pub script_score: Option<String>, pub has_parent: Option<String>, pub geo_distance: Option<String>, pub span_containing: Option<String>, pub regexp: Option<Value>, pub span_term: Option<Value>, pub terms: Option<String>, pub wildcard: Option<Value>, pub wrapper: Option<String>, pub exists: Option<String>, pub simple_query_string: Option<String>, pub type: Option<String>, pub term: Option<Value>, pub match_none: Option<String>, pub query_string: Option<String>, pub dis_max: Option<String>, pub span_first: Option<String>, pub span_or: Option<String>, pub has_child: Option<String>, pub terms_set: Option<Value>, pub knn: Option<Value>, pub match: Option<Value>, pub bool: Option<String>,
}

Fields§

§nested: Option<String>§parent_id: Option<String>§field_masking_span: Option<String>§match_phrase: Option<Value>

Analyzes the text and creates a phrase query out of the analyzed text.

§intervals: Option<Value>

Returns documents based on the order and proximity of matching terms.

§boosting: Option<String>§percolate: Option<String>§span_near: Option<String>§span_not: Option<String>§geo_bounding_box: Option<String>§match_bool_prefix: Option<Value>

Analyzes its input and constructs a bool query from the terms. Each term except the last is used in a term query. The last term is used in a prefix query.

§prefix: Option<Value>

Returns documents that contain a specific prefix in a provided field.

§more_like_this: Option<String>§span_multi: Option<String>§common: Option<Value>§span_within: Option<String>§ids: Option<String>§distance_feature: Option<String>§geo_polygon: Option<String>§match_all: Option<String>§range: Option<Value>

Returns documents that contain terms within a provided range.

§combined_fields: Option<String>§fuzzy: Option<Value>

Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance.

§match_phrase_prefix: Option<Value>

Returns documents that contain the words of a provided text, in the same order as provided. The last term of the provided text is treated as a prefix, matching any words that begin with that term.

§function_score: Option<String>§geo_shape: Option<String>§constant_score: Option<String>§hybrid: Option<String>§multi_match: Option<String>§pinned: Option<String>§rank_feature: Option<String>§neural: Option<Value>§script: Option<String>§script_score: Option<String>§has_parent: Option<String>§geo_distance: Option<String>§span_containing: Option<String>§regexp: Option<Value>

Returns documents that contain terms matching a regular expression.

§span_term: Option<Value>

Matches spans containing a term.

§terms: Option<String>§wildcard: Option<Value>

Returns documents that contain terms matching a wildcard pattern.

§wrapper: Option<String>§exists: Option<String>§simple_query_string: Option<String>§type: Option<String>§term: Option<Value>

Returns documents that contain an exact term in a provided field. To return a document, the query term must exactly match the queried field’s value, including white space and capitalization.

§match_none: Option<String>§query_string: Option<String>§dis_max: Option<String>§span_first: Option<String>§span_or: Option<String>§has_child: Option<String>§terms_set: Option<Value>

Returns documents that contain a minimum number of exact terms in a provided field. To return a document, a required number of terms must exactly match the field values, including white space and capitalization.

§knn: Option<Value>§match: Option<Value>

Returns documents that match a provided text, number, date or Boolean value. The provided text is analyzed before matching.

§bool: Option<String>

Implementations§

Trait Implementations§

Source§

impl Clone for QueryContainer

Source§

fn clone(&self) -> QueryContainer

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryContainer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for QueryContainer

Source§

fn default() -> QueryContainer

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for QueryContainer

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for QueryContainer

Source§

fn eq(&self, other: &QueryContainer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for QueryContainer

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for QueryContainer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more