pub enum Query {
Show 60 variants Bool(BoolQuery), Prefix(PrefixQuery), Regexp(RegexpQuery), Wildcard(WildcardQuery), TermsSet(TermsSetQuery), Term(TermQuery), Terms(TermsQuery), TermsLookup(TermsLookupQuery), Exists(ExistsQuery), Range(RangeQuery), Ids(IdsQuery), ConstantScore(ConstantScoreQuery), DistanceFeatureDate(DistanceFeatureQuery<DateTime<Utc>>), DistanceFeatureGeo(DistanceFeatureQuery<GeoLocation>), Match(MatchQuery), MatchBoolPrefix(MatchBoolPrefixQuery), MatchPhrasePrefix(MatchPhrasePrefixQuery), MatchAll(MatchAllQuery), MatchNone(MatchNoneQuery), MatchPhrase(MatchPhraseQuery), MultiMatch(MultiMatchQuery), Nested(NestedQuery), Boosting(BoostingQuery), DisMax(DisMaxQuery), Pinned(PinnedQuery), Percolate(PercolateQuery), PercolateLookup(PercolateLookupQuery), FunctionScore(FunctionScoreQuery), RankFeature(RankFeatureQuery), RankFeatureSaturation(RankFeatureSaturationQuery), RankFeatureLogarithm(RankFeatureLogarithmQuery), RankFeatureSigmoid(RankFeatureSigmoidQuery), RankFeatureLinear(RankFeatureLinearQuery), MoreLikeThis(MoreLikeThisQuery), Fuzzy(FuzzyQuery), GeoDistance(GeoDistanceQuery), GeoBoundingBox(GeoBoundingBoxQuery), GeoShapeLookup(GeoShapeLookupQuery), GeoShape(GeoShapeQuery), ShapeLookup(ShapeLookupQuery), Shape(ShapeQuery), Json(JsonQuery), Wrapper(WrapperQuery), Script(ScriptQuery), ScriptScore(ScriptScoreQuery), ParentId(ParentIdQuery), HasParent(HasParentQuery), HasChild(HasChildQuery), SimpleQueryString(SimpleQueryStringQuery), QueryString(QueryStringQuery), CombinedFields(CombinedFieldsQuery), SpanContaining(SpanContainingQuery), SpanFieldMasking(SpanFieldMaskingQuery), SpanFirst(SpanFirstQuery), SpanMulti(SpanMultiQuery), SpanNear(SpanNearQuery), SpanNot(SpanNotQuery), SpanOr(SpanOrQuery), SpanTerm(SpanTermQuery), SpanWithin(SpanWithinQuery),
}
Expand description

A container enum for supported Elasticsearch query types

Variants§

§

Bool(BoolQuery)

§

Prefix(PrefixQuery)

§

Regexp(RegexpQuery)

§

Wildcard(WildcardQuery)

§

TermsSet(TermsSetQuery)

§

Term(TermQuery)

§

Terms(TermsQuery)

§

TermsLookup(TermsLookupQuery)

§

Exists(ExistsQuery)

§

Range(RangeQuery)

§

Ids(IdsQuery)

§

ConstantScore(ConstantScoreQuery)

§

DistanceFeatureDate(DistanceFeatureQuery<DateTime<Utc>>)

§

DistanceFeatureGeo(DistanceFeatureQuery<GeoLocation>)

§

Match(MatchQuery)

§

MatchBoolPrefix(MatchBoolPrefixQuery)

§

MatchPhrasePrefix(MatchPhrasePrefixQuery)

§

MatchAll(MatchAllQuery)

§

MatchNone(MatchNoneQuery)

§

MatchPhrase(MatchPhraseQuery)

§

MultiMatch(MultiMatchQuery)

§

Nested(NestedQuery)

§

Boosting(BoostingQuery)

§

DisMax(DisMaxQuery)

§

Pinned(PinnedQuery)

§

Percolate(PercolateQuery)

§

PercolateLookup(PercolateLookupQuery)

§

FunctionScore(FunctionScoreQuery)

§

RankFeature(RankFeatureQuery)

§

RankFeatureSaturation(RankFeatureSaturationQuery)

§

RankFeatureLogarithm(RankFeatureLogarithmQuery)

§

RankFeatureSigmoid(RankFeatureSigmoidQuery)

§

RankFeatureLinear(RankFeatureLinearQuery)

§

MoreLikeThis(MoreLikeThisQuery)

§

Fuzzy(FuzzyQuery)

§

GeoDistance(GeoDistanceQuery)

§

GeoBoundingBox(GeoBoundingBoxQuery)

§

GeoShapeLookup(GeoShapeLookupQuery)

§

GeoShape(GeoShapeQuery)

§

ShapeLookup(ShapeLookupQuery)

§

Shape(ShapeQuery)

§

Json(JsonQuery)

§

Wrapper(WrapperQuery)

§

Script(ScriptQuery)

§

ScriptScore(ScriptScoreQuery)

§

ParentId(ParentIdQuery)

§

HasParent(HasParentQuery)

§

HasChild(HasChildQuery)

§

SimpleQueryString(SimpleQueryStringQuery)

§

QueryString(QueryStringQuery)

§

CombinedFields(CombinedFieldsQuery)

§

SpanContaining(SpanContainingQuery)

§

SpanFieldMasking(SpanFieldMaskingQuery)

§

SpanFirst(SpanFirstQuery)

§

SpanMulti(SpanMultiQuery)

§

SpanNear(SpanNearQuery)

§

SpanNot(SpanNotQuery)

§

SpanOr(SpanOrQuery)

§

SpanTerm(SpanTermQuery)

§

SpanWithin(SpanWithinQuery)

Implementations§

source§

impl Query

source

pub fn bool() -> BoolQuery

Creates an instance of BoolQuery

source§

impl Query

source

pub fn boosting<Q, B>( positive: Q, negative: Q, negative_boost: B ) -> BoostingQuerywhere Q: Into<Query>, B: Into<NegativeBoost>,

Creates an instance of BoostingQuery

  • positive - Query you wish to run. Any returned documents must match this query.
  • negative - Query used to decrease the relevance score of matching documents.
    If a returned document matches the positive query and this query, the boosting query calculates the final relevance score for the document as follows:
    1. Take the original relevance score from the positive query.
    2. Multiply the score by the negative_boost value.
  • negative_boost - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query.
source§

impl Query

source

pub fn constant_score<T>(filter: T) -> ConstantScoreQuerywhere T: Into<Query>,

Creates an instance of ConstantScoreQuery

  • filter - Filter query you wish to run. Any returned documents must match this query.
    Filter queries do not calculate relevance scores. To speed up performance, Elasticsearch automatically caches frequently used filter queries.
source§

impl Query

source

pub fn dis_max() -> DisMaxQuery

Creates an instance of DisMaxQuery

source§

impl Query

source§

impl Query

source

pub fn json(query: Value) -> JsonQuery

Creates an instance of JsonQuery

  • query - raw JSON query
source§

impl Query

source

pub fn combined_fields<F, S>(fields: F, query: S) -> CombinedFieldsQuerywhere F: IntoIterator, F::Item: ToString, S: Into<Text>,

Creates an instance of CombinedFieldsQuery

  • fields - List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer.
  • query - Text to search for in the provided <fields>. The combined_fields query analyzes the provided text before performing a search.
source§

impl Query

source

pub fn match_bool_prefix<T, U>(field: T, query: U) -> MatchBoolPrefixQuerywhere T: ToString, U: Into<Text>,

Creates an instance of MatchBoolPrefixQuery

  • field - Field you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>
source§

impl Query

source

pub fn match_phrase_prefix<T, U>(field: T, query: U) -> MatchPhrasePrefixQuerywhere T: ToString, U: Into<Text>,

Creates an instance of MatchPhrasePrefixQuery

  • field - Field you wish to search.
  • query - Text you wish to find in the provided <field>.
    The match_phrase_prefix query analyzes any provided text into tokens before performing a search. The last term of this text is treated as a prefix, matching any words that begin with that term.
source§

impl Query

source

pub fn match_phrase<T, U>(field: T, query: U) -> MatchPhraseQuerywhere T: ToString, U: Into<Text>,

Creates an instance of MatchPhraseQuery

  • field - Field you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>.
    The match_phrase query analyzes any provided text before performing a search. This means the match_phrase query can search text fields for analyzed tokens rather than an exact term.
source§

impl Query

source

pub fn match<T, U>(field: T, query: U) -> MatchQuerywhere T: ToString, U: Into<Text>,

Creates an instance of MatchQuery

  • field - Field you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>.
    The match query analyzes any provided text before performing a search. This means the match query can search text fields for analyzed tokens rather than an exact term.
source§

impl Query

source

pub fn multi_match<F, S>(fields: F, query: S) -> MultiMatchQuerywhere F: IntoIterator, F::Item: ToString, S: Into<Text>,

Creates an instance of MultiMatchQuery

  • fields - Fields you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>. The match query analyzes any provided text before performing a search. This means the match query can search text fields for analyzed tokens rather than an exact term.
source§

impl Query

source

pub fn query_string<S>(query: S) -> QueryStringQuerywhere S: Into<Text>,

Creates an instance of QueryStringQuery

source§

impl Query

source

pub fn simple_query_string<S>(query: S) -> SimpleQueryStringQuerywhere S: Into<Text>,

Creates an instance of SimpleQueryStringQuery

source§

impl Query

source

pub fn geo_bounding_box<T, U>(field: T, bounding_box: U) -> GeoBoundingBoxQuerywhere T: ToString, U: Into<GeoBoundingBox>,

Creates an instance of GeoBoundingBoxQuery

  • field - Field you wish to search.
  • bounding_box - A series of vertex coordinates of a geo bounding box
source§

impl Query

source

pub fn geo_distance<T, U, V>( field: T, origin: U, distance: V ) -> GeoDistanceQuerywhere T: ToString, U: Into<GeoLocation>, V: Into<Distance>,

Creates an instance of GeoDistanceQuery

  • field - Field you wish to search
  • origin - GeoPoint to measure distance to
  • distance - Distance threshold
source§

impl Query

source

pub fn geo_shape_lookup<S, T>(field: S, id: T) -> GeoShapeLookupQuerywhere S: ToString, T: ToString,

Creates an instance of GeoShapeLookupQuery

  • field - Field you wish to search
  • id - The ID of the document that containing the pre-indexed shape
source§

impl Query

source

pub fn geo_shape<S, T>(field: S, shape: T) -> GeoShapeQuerywhere S: ToString, T: Into<GeoShape>,

Creates an instance of GeoShapeQuery

  • field - Field you wish to search
  • shape - Shape you with to search
source§

impl Query

source

pub fn has_child<T, U>(type: T, query: U) -> HasChildQuerywhere T: ToString, U: Into<Query>,

Creates an instance of HasChildQuery

  • type - Name of the child relationship mapped for the join field.
  • query - Query you wish to run on child documents of the type field. If a child document matches the search, the query returns the parent document.
source§

impl Query

source

pub fn has_parent<T, U>(parent_type: T, query: U) -> HasParentQuerywhere T: ToString, U: Into<Query>,

Creates an instance of HasParentQuery

  • parent-type - Name of the parent relationship mapped for the join field.
  • query - Query you wish to run on parent documents of the parent_type field. If a parent document matches the search, the query returns its child documents.
source§

impl Query

source

pub fn nested<T, U>(path: T, query: U) -> NestedQuerywhere T: ToString, U: Into<Query>,

Creates an instance of NestedQuery

  • path - Path to the nested object you wish to search.
  • query - Query you wish to run on nested objects in the path. If an object matches the search, the nested query returns the root parent document.
    You can search nested fields using dot notation that includes the complete path, such as obj1.name.
    Multi-level nesting is automatically supported, and detected, resulting in an inner nested query to automatically match the relevant nesting level, rather than root, if it exists within another nested query.
    Multi-level nested queries are also supported.
source§

impl Query

source

pub fn parent_id<T, U>(type: T, id: U) -> ParentIdQuerywhere T: ToString, U: ToString,

Creates an instance of ParentIdQuery

  • type - Name of the child relationship mapped for the join field
  • id - ID of the parent document. The query will return child documents of this parent document.
source§

impl Query

source

pub fn shape_lookup<S, T>(field: S, id: T) -> ShapeLookupQuerywhere S: ToString, T: ToString,

Creates an instance of ShapeLookupQuery

  • field - Field you wish to search
  • id - The ID of the document that containing the pre-indexed shape
source§

impl Query

source

pub fn shape<S, T>(field: S, shape: T) -> ShapeQuerywhere S: ToString, T: Into<Shape>,

Creates an instance of ShapeQuery

  • field - Field you wish to search
  • shape - Shape you with to search
source§

impl Query

source

pub fn span_containing<T, U>(little: T, big: U) -> SpanContainingQuerywhere T: Into<SpanQuery>, U: Into<SpanQuery>,

Creates an instance of SpanContainingQuery

source§

impl Query

source

pub fn span_field_masking<Q, F>(query: Q, field: F) -> SpanFieldMaskingQuerywhere Q: Into<SpanQuery>, F: ToString,

Creates an instance of SpanFieldMaskingQuery

source§

impl Query

source

pub fn span_first<T>(match: T, end: u32) -> SpanFirstQuerywhere T: Into<SpanQuery>,

Creates an instance of SpanFirstQuery

source§

impl Query

source

pub fn span_multi<Q>(match: Q) -> SpanMultiQuerywhere Q: Into<MultiTermQuery>,

Creates an instance of SpanMultiQuery

source§

impl Query

source

pub fn span_near<T>(clauses: T) -> SpanNearQuerywhere T: IntoIterator, T::Item: Into<SpanQuery>,

Creates an instance of SpanNearQuery

source§

impl Query

source

pub fn span_not<T, U>(exclude: T, include: U) -> SpanNotQuerywhere T: IntoIterator, T::Item: Into<SpanQuery>, U: IntoIterator, U::Item: Into<SpanQuery>,

Creates an instance of SpanNotQuery

source§

impl Query

source

pub fn span_or<T>(clauses: T) -> SpanOrQuerywhere T: IntoIterator, T::Item: Into<SpanQuery>,

Creates an instance of SpanOrQuery

source§

impl Query

source

pub fn span_term<T, U>(field: T, value: U) -> SpanTermQuerywhere T: ToString, U: Serialize,

Creates an instance of SpanTermQuery

  • field - Field you wish to search.
  • value - Term you wish to find in the provided field. To return a document, the term must exactly match the field value, including whitespace and capitalization.
source§

impl Query

source

pub fn span_within<T, U>(little: T, big: U) -> SpanWithinQuerywhere T: Into<SpanQuery>, U: Into<SpanQuery>,

Creates an instance of SpanWithinQuery

source§

impl Query

source

pub fn distance_feature<T, O>( field: T, origin: O, pivot: <O as Origin>::Pivot ) -> DistanceFeatureQuery<O>where T: ToString, O: Origin,

Creates an instance of DistanceFeatureQuery

  • field - Name of the field used to calculate distances. This field must meet the following criteria:
  • origin - Date or point of origin used to calculate distances.
    If the field value is a date or date_nanos field, the origin value must be a date. Date Math, such as now-1h, is supported.
    If the field value is a geo_point field, the origin value must be a geopoint.
  • pivot - Distance from the origin at which relevance scores receive half of the boost value.
    If the field value is a date or date_nanos field, the pivot value must be a time unit , such as 1h or 10d.
    If the field value is a geo_point field, the pivot value must be a distance unit , such as 1km or 12m.
source§

impl Query

source

pub fn more_like_this<I>(like: I) -> MoreLikeThisQuerywhere I: IntoIterator, I::Item: Into<Like>,

Creates an instance of MoreLikeThisQuery

  • like - free form text and/or a single or multiple documents.
source§

impl Query

source

pub fn percolate_lookup<S, T, U>( field: S, index: T, id: U ) -> PercolateLookupQuerywhere S: ToString, T: ToString, U: ToString,

Creates an instance of PercolateLookupQuery

  • field - The field of type percolator that holds the indexed queries
  • index - The index the document resides in
  • id - The id of the document to fetch
source§

impl Query

source

pub fn percolate<S, T>(field: S, source: T) -> PercolateQuerywhere S: ToString, T: Serialize,

Creates an instance of PercolateQuery

  • field - The field of type percolator that holds the indexed queries
  • source - Source to percolate
source§

impl Query

source

pub fn pinned<Q>(values: PinnedQueryValues, organic: Q) -> PinnedQuerywhere Q: Into<Query>,

Creates an instance of PinnedQuery

source§

impl Query

source

pub fn rank_feature<T>(field: T) -> RankFeatureQuerywhere T: ToString,

Creates an instance of RankFeatureQuery

  • field - rank_feature or rank_features field used to boost relevance scores
source§

impl Query

source

pub fn script(script: Script) -> ScriptQuery

Creates an instance of ScriptQuery

  • script - Contains a script to run as a query. This script must return a boolean value, true or false
source§

impl Query

source

pub fn script_score<Q>(query: Q, script: Script) -> ScriptScoreQuerywhere Q: Into<Query>,

Creates an instance of ScriptScoreQuery

  • query - Query used to return documents
  • script - Script used to compute the score of documents returned by the query
source§

impl Query

source

pub fn wrapper<S>(query: S) -> WrapperQuerywhere S: ToString,

Creates an instance of WrapperQuery

source§

impl Query

source

pub fn exists<T>(field: T) -> ExistsQuerywhere T: ToString,

Creates an instance of ExistsQuery

  • field - Name of the field you wish to search. While a field is deemed non-existent if the JSON value is null or [], these values will indicate the field does exist:
    • Empty strings, such as "" or "-"
    • Arrays containing null and another value, such as [null, "foo"]
    • A custom null-value, defined in field mapping
source§

impl Query

source

pub fn fuzzy<T, U>(field: T, value: U) -> FuzzyQuerywhere T: ToString, U: Serialize,

Creates an instance of FuzzyQuery

  • field - Field you wish to search.
  • value - Fuzzy you wish to find in the provided field.
source§

impl Query

source

pub fn ids<I>(values: I) -> IdsQuerywhere I: IntoIterator, I::Item: ToString,

Creates an instance of IdsQuery

source§

impl Query

source

pub fn prefix<T, U>(field: T, value: U) -> PrefixQuerywhere T: ToString, U: Serialize,

Creates an instance of PrefixQuery

  • field - Field you wish to search.
  • value - Term you wish to find in the provided field. To return a document, the term must exactly match the field value, including whitespace and capitalization.
source§

impl Query

source

pub fn range<T>(field: T) -> RangeQuerywhere T: ToString,

Creates an instance of RangeQuery

  • field - Field you wish to search.
source§

impl Query

source

pub fn regexp<S>(field: S, value: S) -> RegexpQuerywhere S: ToString,

Creates an instance of RegexpQuery

  • field - Field you wish to search.
  • value - Regular expression for terms you wish to find in the provided field. For a list of supported operators, see Regular expression syntax.

By default, regular expressions are limited to 1,000 characters. You can change this limit using the index.max_regex_length setting.

source§

impl Query

source

pub fn term<T, U>(field: T, value: U) -> TermQuerywhere T: ToString, U: Serialize,

Creates an instance of TermQuery

  • field - Field you wish to search.
  • value - Term you wish to find in the provided field. To return a document, the term must exactly match the field value, including whitespace and capitalization.
source§

impl Query

source

pub fn terms_lookup<S, T, U, V>( field: S, index: T, id: U, path: V ) -> TermsLookupQuerywhere S: ToString, T: ToString, U: ToString, V: ToString,

Creates an instance of TermsLookupQuery

  • field - Field you wish to search.
  • index - Name of the index from which to fetch field values.
  • id - ID of the document from which to fetch field values.
  • path - Name of the field from which to fetch field values. Elasticsearch uses these values as search terms for the query. If the field values include an array of nested inner objects, you can access those objects using dot notation syntax.
source§

impl Query

source

pub fn terms<S, I>(field: S, terms: I) -> TermsQuerywhere S: ToString, I: Into<Terms>,

Creates an instance of TermsQuery

  • field - Field you wish to search.
  • values - An array of terms you wish to find in the provided field. To return a document, one or more terms must exactly match a field value, including whitespace and capitalization.
    By default, Elasticsearch limits the terms query to a maximum of 65,536 terms. You can change this limit using the index.max_terms_count setting.

To use the field values of an existing document as search terms, use the terms lookup parameters.

source§

impl Query

source

pub fn terms_set<S, T, U>( field: S, terms: T, minimum_should_match: U ) -> TermsSetQuerywhere S: ToString, T: Into<Terms>, U: Into<TermsSetMinimumShouldMatch>,

Creates an instance of TermsSetQuery

  • field - Field you wish to search.
  • value - TermsSet you wish to find in the provided field. To return a document, the terms_set must exactly match the field value, including whitespace and capitalization.
source§

impl Query

source

pub fn wildcard<T, U>(field: T, value: U) -> WildcardQuerywhere T: ToString, U: Serialize,

Creates an instance of WildcardQuery

  • field - Field you wish to search.
  • value - Wildcard you wish to find in the provided field. To return a document, the wildcard must exactly match the field value, including whitespace and capitalization.
source§

impl Query

source

pub fn match_all() -> MatchAllQuery

Creates an instance of MatchAllQuery

source§

impl Query

source

pub fn match_none() -> MatchNoneQuery

Creates an instance of MatchNoneQuery

Trait Implementations§

source§

impl Clone for Query

source§

fn clone(&self) -> Query

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Query

source§

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

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

impl From<BoolQuery> for Query

source§

fn from(q: BoolQuery) -> Self

Converts to this type from the input type.
source§

impl From<BoostingQuery> for Query

source§

fn from(q: BoostingQuery) -> Self

Converts to this type from the input type.
source§

impl From<CombinedFieldsQuery> for Query

source§

fn from(q: CombinedFieldsQuery) -> Self

Converts to this type from the input type.
source§

impl From<ConstantScoreQuery> for Query

source§

fn from(q: ConstantScoreQuery) -> Self

Converts to this type from the input type.
source§

impl From<DisMaxQuery> for Query

source§

fn from(q: DisMaxQuery) -> Self

Converts to this type from the input type.
source§

impl From<DistanceFeatureQuery<DateTime<Utc>>> for Query

source§

fn from(q: DistanceFeatureQuery<DateTime<Utc>>) -> Self

Converts to this type from the input type.
source§

impl From<DistanceFeatureQuery<GeoLocation>> for Query

source§

fn from(q: DistanceFeatureQuery<GeoLocation>) -> Self

Converts to this type from the input type.
source§

impl From<ExistsQuery> for Query

source§

fn from(q: ExistsQuery) -> Self

Converts to this type from the input type.
source§

impl From<FunctionScoreQuery> for Query

source§

fn from(q: FunctionScoreQuery) -> Self

Converts to this type from the input type.
source§

impl From<FuzzyQuery> for Query

source§

fn from(q: FuzzyQuery) -> Self

Converts to this type from the input type.
source§

impl From<GeoBoundingBoxQuery> for Query

source§

fn from(q: GeoBoundingBoxQuery) -> Self

Converts to this type from the input type.
source§

impl From<GeoDistanceQuery> for Query

source§

fn from(q: GeoDistanceQuery) -> Self

Converts to this type from the input type.
source§

impl From<GeoShapeLookupQuery> for Query

source§

fn from(q: GeoShapeLookupQuery) -> Self

Converts to this type from the input type.
source§

impl From<GeoShapeQuery> for Query

source§

fn from(q: GeoShapeQuery) -> Self

Converts to this type from the input type.
source§

impl From<HasChildQuery> for Query

source§

fn from(q: HasChildQuery) -> Self

Converts to this type from the input type.
source§

impl From<HasParentQuery> for Query

source§

fn from(q: HasParentQuery) -> Self

Converts to this type from the input type.
source§

impl From<IdsQuery> for Query

source§

fn from(q: IdsQuery) -> Self

Converts to this type from the input type.
source§

impl From<JsonQuery> for Query

source§

fn from(q: JsonQuery) -> Self

Converts to this type from the input type.
source§

impl From<MatchAllQuery> for Query

source§

fn from(q: MatchAllQuery) -> Self

Converts to this type from the input type.
source§

impl From<MatchBoolPrefixQuery> for Query

source§

fn from(q: MatchBoolPrefixQuery) -> Self

Converts to this type from the input type.
source§

impl From<MatchNoneQuery> for Query

source§

fn from(q: MatchNoneQuery) -> Self

Converts to this type from the input type.
source§

impl From<MatchPhrasePrefixQuery> for Query

source§

fn from(q: MatchPhrasePrefixQuery) -> Self

Converts to this type from the input type.
source§

impl From<MatchPhraseQuery> for Query

source§

fn from(q: MatchPhraseQuery) -> Self

Converts to this type from the input type.
source§

impl From<MatchQuery> for Query

source§

fn from(q: MatchQuery) -> Self

Converts to this type from the input type.
source§

impl From<MoreLikeThisQuery> for Query

source§

fn from(q: MoreLikeThisQuery) -> Self

Converts to this type from the input type.
source§

impl From<MultiMatchQuery> for Query

source§

fn from(q: MultiMatchQuery) -> Self

Converts to this type from the input type.
source§

impl From<NestedQuery> for Query

source§

fn from(q: NestedQuery) -> Self

Converts to this type from the input type.
source§

impl From<ParentIdQuery> for Query

source§

fn from(q: ParentIdQuery) -> Self

Converts to this type from the input type.
source§

impl From<PercolateLookupQuery> for Query

source§

fn from(q: PercolateLookupQuery) -> Self

Converts to this type from the input type.
source§

impl From<PercolateQuery> for Query

source§

fn from(q: PercolateQuery) -> Self

Converts to this type from the input type.
source§

impl From<PinnedQuery> for Query

source§

fn from(q: PinnedQuery) -> Self

Converts to this type from the input type.
source§

impl From<PrefixQuery> for Query

source§

fn from(q: PrefixQuery) -> Self

Converts to this type from the input type.
source§

impl From<QueryStringQuery> for Query

source§

fn from(q: QueryStringQuery) -> Self

Converts to this type from the input type.
source§

impl From<RangeQuery> for Query

source§

fn from(q: RangeQuery) -> Self

Converts to this type from the input type.
source§

impl From<RankFeatureLinearQuery> for Query

source§

fn from(q: RankFeatureLinearQuery) -> Self

Converts to this type from the input type.
source§

impl From<RankFeatureLogarithmQuery> for Query

source§

fn from(q: RankFeatureLogarithmQuery) -> Self

Converts to this type from the input type.
source§

impl From<RankFeatureQuery> for Query

source§

fn from(q: RankFeatureQuery) -> Self

Converts to this type from the input type.
source§

impl From<RankFeatureSaturationQuery> for Query

source§

fn from(q: RankFeatureSaturationQuery) -> Self

Converts to this type from the input type.
source§

impl From<RankFeatureSigmoidQuery> for Query

source§

fn from(q: RankFeatureSigmoidQuery) -> Self

Converts to this type from the input type.
source§

impl From<RegexpQuery> for Query

source§

fn from(q: RegexpQuery) -> Self

Converts to this type from the input type.
source§

impl From<ScriptQuery> for Query

source§

fn from(q: ScriptQuery) -> Self

Converts to this type from the input type.
source§

impl From<ScriptScoreQuery> for Query

source§

fn from(q: ScriptScoreQuery) -> Self

Converts to this type from the input type.
source§

impl From<ShapeLookupQuery> for Query

source§

fn from(q: ShapeLookupQuery) -> Self

Converts to this type from the input type.
source§

impl From<ShapeQuery> for Query

source§

fn from(q: ShapeQuery) -> Self

Converts to this type from the input type.
source§

impl From<SimpleQueryStringQuery> for Query

source§

fn from(q: SimpleQueryStringQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanContainingQuery> for Query

source§

fn from(q: SpanContainingQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanFieldMaskingQuery> for Query

source§

fn from(q: SpanFieldMaskingQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanFirstQuery> for Query

source§

fn from(q: SpanFirstQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanMultiQuery> for Query

source§

fn from(q: SpanMultiQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanNearQuery> for Query

source§

fn from(q: SpanNearQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanNotQuery> for Query

source§

fn from(q: SpanNotQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanOrQuery> for Query

source§

fn from(q: SpanOrQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanTermQuery> for Query

source§

fn from(q: SpanTermQuery) -> Self

Converts to this type from the input type.
source§

impl From<SpanWithinQuery> for Query

source§

fn from(q: SpanWithinQuery) -> Self

Converts to this type from the input type.
source§

impl From<TermQuery> for Query

source§

fn from(q: TermQuery) -> Self

Converts to this type from the input type.
source§

impl From<TermsLookupQuery> for Query

source§

fn from(q: TermsLookupQuery) -> Self

Converts to this type from the input type.
source§

impl From<TermsQuery> for Query

source§

fn from(q: TermsQuery) -> Self

Converts to this type from the input type.
source§

impl From<TermsSetQuery> for Query

source§

fn from(q: TermsSetQuery) -> Self

Converts to this type from the input type.
source§

impl From<Value> for Query

source§

fn from(value: Value) -> Self

Converts to this type from the input type.
source§

impl From<WildcardQuery> for Query

source§

fn from(q: WildcardQuery) -> Self

Converts to this type from the input type.
source§

impl From<WrapperQuery> for Query

source§

fn from(q: WrapperQuery) -> Self

Converts to this type from the input type.
source§

impl IntoIterator for Query

§

type Item = Query

The type of the elements being iterated over.
§

type IntoIter = IntoIter<<Query as IntoIterator>::Item>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl PartialEq<BoolQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<BoostingQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CombinedFieldsQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ConstantScoreQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<DisMaxQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<DistanceFeatureQuery<DateTime<Utc>>> for Query

source§

fn eq(&self, other: &DistanceFeatureQuery<DateTime<Utc>>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<DistanceFeatureQuery<GeoLocation>> for Query

source§

fn eq(&self, other: &DistanceFeatureQuery<GeoLocation>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ExistsQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<FunctionScoreQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<FuzzyQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<GeoBoundingBoxQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<GeoDistanceQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<GeoShapeLookupQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<GeoShapeQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<HasChildQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<HasParentQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<IdsQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<JsonQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MatchAllQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MatchBoolPrefixQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MatchNoneQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MatchPhrasePrefixQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MatchPhraseQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MatchQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MoreLikeThisQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<MultiMatchQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NestedQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ParentIdQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<PercolateLookupQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<PercolateQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<PinnedQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<PrefixQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for BoolQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for BoostingQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for CombinedFieldsQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ConstantScoreQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for DisMaxQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for DistanceFeatureQuery<DateTime<Utc>>

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for DistanceFeatureQuery<GeoLocation>

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ExistsQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for FunctionScoreQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for FuzzyQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for GeoBoundingBoxQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for GeoDistanceQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for GeoShapeLookupQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for GeoShapeQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for HasChildQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for HasParentQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for IdsQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for JsonQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MatchAllQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MatchBoolPrefixQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MatchNoneQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MatchPhrasePrefixQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MatchPhraseQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MatchQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MoreLikeThisQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for MultiMatchQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for NestedQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ParentIdQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for PercolateLookupQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for PercolateQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for PinnedQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for PrefixQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for QueryStringQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RangeQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RankFeatureLinearQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RankFeatureLogarithmQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RankFeatureQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RankFeatureSaturationQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RankFeatureSigmoidQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for RegexpQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ScriptQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ScriptScoreQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ShapeLookupQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for ShapeQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SimpleQueryStringQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanContainingQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanFieldMaskingQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanFirstQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanMultiQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanNearQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanNotQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanOrQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanTermQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for SpanWithinQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for TermQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for TermsLookupQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for TermsQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for TermsSetQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for WildcardQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Query> for WrapperQuery

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<QueryStringQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RangeQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RankFeatureLinearQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RankFeatureLogarithmQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RankFeatureQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RankFeatureSaturationQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RankFeatureSigmoidQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<RegexpQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ScriptQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ScriptScoreQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ShapeLookupQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<ShapeQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SimpleQueryStringQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanContainingQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanFieldMaskingQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanFirstQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanMultiQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanNearQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanNotQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanOrQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanTermQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<SpanWithinQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<TermQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<TermsLookupQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<TermsQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<TermsSetQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<WildcardQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<WrapperQuery> for Query

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Query

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 Query

Auto Trait Implementations§

§

impl RefUnwindSafe for Query

§

impl Send for Query

§

impl Sync for Query

§

impl Unpin for Query

§

impl UnwindSafe for Query

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.