pub enum Query {
Show 45 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<GeoPoint>),
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),
}
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<GeoPoint>)
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)
Implementations
sourceimpl Query
impl Query
sourcepub fn boosting<Q, B>(
positive: Q,
negative: Q,
negative_boost: B
) -> BoostingQuery where
Q: Into<Query>,
B: Into<NegativeBoost>,
pub fn boosting<Q, B>(
positive: Q,
negative: Q,
negative_boost: B
) -> BoostingQuery where
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 thepositive
query and this query, theboosting
query calculates the final relevance score for the document as follows:- Take the original relevance score from the
positive
query. - Multiply the score by the
negative_boost
value.
- Take the original relevance score from the
negative_boost
- Floating point number between0
and1.0
used to decrease the relevance scores of documents matching thenegative
query.
sourceimpl Query
impl Query
sourcepub fn constant_score(filter: impl Into<Query>) -> ConstantScoreQuery
pub fn constant_score(filter: impl Into<Query>) -> ConstantScoreQuery
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.
sourceimpl Query
impl Query
sourcepub fn dis_max() -> DisMaxQuery
pub fn dis_max() -> DisMaxQuery
Creates an instance of DisMaxQuery
sourceimpl Query
impl Query
sourcepub fn function_score(query: impl Into<Query>) -> FunctionScoreQuery
pub fn function_score(query: impl Into<Query>) -> FunctionScoreQuery
Creates an instance of FunctionScoreQuery
sourceimpl Query
impl Query
sourcepub fn combined_fields<F, S>(fields: F, query: S) -> CombinedFieldsQuery where
F: IntoIterator,
F::Item: ToString,
S: Into<Text>,
pub fn combined_fields<F, S>(fields: F, query: S) -> CombinedFieldsQuery where
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.
sourceimpl Query
impl Query
sourcepub fn match_bool_prefix(
field: impl Into<String>,
query: impl Into<Text>
) -> MatchBoolPrefixQuery
pub fn match_bool_prefix(
field: impl Into<String>,
query: impl Into<Text>
) -> MatchBoolPrefixQuery
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>
sourceimpl Query
impl Query
sourcepub fn match_phrase_prefix(
field: impl Into<String>,
query: impl Into<Text>
) -> MatchPhrasePrefixQuery
pub fn match_phrase_prefix(
field: impl Into<String>,
query: impl Into<Text>
) -> MatchPhrasePrefixQuery
Creates an instance of MatchPhrasePrefixQuery
field
- Field you wish to search.query
- Text you wish to find in the provided.
Thematch_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.
sourceimpl Query
impl Query
sourcepub fn match_phrase(
field: impl Into<String>,
query: impl Into<Text>
) -> MatchPhraseQuery
pub fn match_phrase(
field: impl Into<String>,
query: impl Into<Text>
) -> MatchPhraseQuery
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>
.
Thematch_phrase
query analyzes any provided text before performing a search. This means thematch_phrase
query can searchtext
fields for analyzed tokens rather than an exact term.
sourceimpl Query
impl Query
sourcepub fn match(field: impl Into<String>, query: impl Into<Text>) -> MatchQuery
pub fn match(field: impl Into<String>, query: impl Into<Text>) -> MatchQuery
Creates an instance of MatchQuery
sourceimpl Query
impl Query
sourcepub fn multi_match<F, S>(fields: F, query: S) -> MultiMatchQuery where
F: IntoIterator,
F::Item: ToString,
S: Into<Text>,
pub fn multi_match<F, S>(fields: F, query: S) -> MultiMatchQuery where
F: IntoIterator,
F::Item: ToString,
S: Into<Text>,
Creates an instance of MultiMatchQuery
sourceimpl Query
impl Query
sourcepub fn query_string<S>(query: S) -> QueryStringQuery where
S: Into<Text>,
pub fn query_string<S>(query: S) -> QueryStringQuery where
S: Into<Text>,
Creates an instance of QueryStringQuery
query
- Query string you wish to parse and use for search. See Simple query string syntax.
sourceimpl Query
impl Query
sourcepub fn simple_query_string<S>(query: S) -> SimpleQueryStringQuery where
S: Into<Text>,
pub fn simple_query_string<S>(query: S) -> SimpleQueryStringQuery where
S: Into<Text>,
Creates an instance of SimpleQueryStringQuery
query
- Query string you wish to parse and use for search. See Simple query string syntax.
sourceimpl Query
impl Query
sourcepub fn geo_bounding_box(
field: impl Into<String>,
value: impl Into<GeoBoundingBox>
) -> GeoBoundingBoxQuery
pub fn geo_bounding_box(
field: impl Into<String>,
value: impl Into<GeoBoundingBox>
) -> GeoBoundingBoxQuery
Creates an instance of GeoBoundingBoxQuery
field
- Field you wish to search.value
- A series of vertex coordinates of a geo bounding box
sourceimpl Query
impl Query
sourcepub fn geo_distance(
field: impl Into<String>,
origin: impl Into<GeoPoint>,
distance: impl Into<Distance>
) -> GeoDistanceQuery
pub fn geo_distance(
field: impl Into<String>,
origin: impl Into<GeoPoint>,
distance: impl Into<Distance>
) -> GeoDistanceQuery
Creates an instance of GeoDistanceQuery
field
- Field you wish to searchorigin
- GeoPoint to measure distance todistance
- Distance threshold
sourceimpl Query
impl Query
sourcepub fn geo_shape_lookup<S, T>(field: S, id: T) -> GeoShapeLookupQuery where
S: ToString,
T: ToString,
pub fn geo_shape_lookup<S, T>(field: S, id: T) -> GeoShapeLookupQuery where
S: ToString,
T: ToString,
Creates an instance of GeoShapeLookupQuery
field
- Field you wish to searchid
- The ID of the document that containing the pre-indexed shape
sourceimpl Query
impl Query
sourcepub fn geo_shape<S, T>(field: S, shape: T) -> GeoShapeQuery where
S: ToString,
T: Into<GeoShape>,
pub fn geo_shape<S, T>(field: S, shape: T) -> GeoShapeQuery where
S: ToString,
T: Into<GeoShape>,
Creates an instance of GeoShapeQuery
field
- Field you wish to searchshape
- Shape you with to search
sourceimpl Query
impl Query
sourcepub fn has_child(type: impl ToString, query: impl Into<Query>) -> HasChildQuery
pub fn has_child(type: impl ToString, query: impl Into<Query>) -> HasChildQuery
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 thetype
field. If a child document matches the search, the query returns the parent document.
sourceimpl Query
impl Query
sourcepub fn has_parent(
parent_type: impl ToString,
query: impl Into<Query>
) -> HasParentQuery
pub fn has_parent(
parent_type: impl ToString,
query: impl Into<Query>
) -> HasParentQuery
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 theparent_type
field. If a parent document matches the search, the query returns its child documents.
sourceimpl Query
impl Query
sourcepub fn nested(path: impl Into<String>, query: impl Into<Query>) -> NestedQuery
pub fn nested(path: impl Into<String>, query: impl Into<Query>) -> NestedQuery
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 thepath
. If an object matches the search, thenested
query returns the root parent document.
You can search nested fields using dot notation that includes the complete path, such asobj1.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.
sourceimpl Query
impl Query
sourcepub fn parent_id(type: impl ToString, id: impl ToString) -> ParentIdQuery
pub fn parent_id(type: impl ToString, id: impl ToString) -> ParentIdQuery
Creates an instance of ParentIdQuery
type
- Name of the child relationship mapped for the join fieldid
- ID of the parent document. The query will return child documents of this parent document.
sourceimpl Query
impl Query
sourcepub fn shape_lookup<S, T>(field: S, id: T) -> ShapeLookupQuery where
S: ToString,
T: ToString,
pub fn shape_lookup<S, T>(field: S, id: T) -> ShapeLookupQuery where
S: ToString,
T: ToString,
Creates an instance of ShapeLookupQuery
field
- Field you wish to searchid
- The ID of the document that containing the pre-indexed shape
sourceimpl Query
impl Query
sourcepub fn shape<S, T>(field: S, shape: T) -> ShapeQuery where
S: ToString,
T: Into<Shape>,
pub fn shape<S, T>(field: S, shape: T) -> ShapeQuery where
S: ToString,
T: Into<Shape>,
Creates an instance of ShapeQuery
field
- Field you wish to searchshape
- Shape you with to search
sourceimpl Query
impl Query
sourcepub fn distance_feature<O: Origin>(
field: impl Into<String>,
origin: O,
pivot: <O as Origin>::Pivot
) -> DistanceFeatureQuery<O>
pub fn distance_feature<O: Origin>(
field: impl Into<String>,
origin: O,
pivot: <O as Origin>::Pivot
) -> DistanceFeatureQuery<O>
Creates an instance of DistanceFeatureQuery
field
- Name of the field used to calculate distances. This field must meet the following criteria:
- Be a
date
,date_nanos
orgeo_point
field - Have an index
mapping parameter value of
true
, which is the default - Have an
doc_values
mapping parameter value oftrue
, which is the default
- Be a
origin
- Date or point of origin used to calculate distances.
If thefield
value is adate
ordate_nanos
field, theorigin
value must be a date. Date Math, such asnow-1h
, is supported.
If thefield
value is ageo_point
field, theorigin
value must be a geopoint.pivot
- Distance from theorigin
at which relevance scores receive half of the boost value.
If the field value is adate
ordate_nanos
field, thepivot
value must be atime unit
, such as1h
or10d
.
If thefield
value is ageo_point
field, thepivot
value must be a distance unit , such as1km
or12m
.
sourceimpl Query
impl Query
sourcepub fn more_like_this<I>(like: I) -> MoreLikeThisQuery where
I: IntoIterator,
I::Item: Into<Like>,
pub fn more_like_this<I>(like: I) -> MoreLikeThisQuery where
I: IntoIterator,
I::Item: Into<Like>,
Creates an instance of MoreLikeThisQuery
like
- free form text and/or a single or multiple documents.
sourceimpl Query
impl Query
sourcepub fn percolate_lookup<S, T, U>(
field: S,
index: T,
id: U
) -> PercolateLookupQuery where
S: ToString,
T: ToString,
U: ToString,
pub fn percolate_lookup<S, T, U>(
field: S,
index: T,
id: U
) -> PercolateLookupQuery where
S: ToString,
T: ToString,
U: ToString,
Creates an instance of PercolateLookupQuery
field
- The field of typepercolator
that holds the indexed queriesindex
- The index the document resides inid
- The id of the document to fetch
sourceimpl Query
impl Query
sourcepub fn percolate<S, T>(field: S, source: T) -> PercolateQuery where
S: ToString,
T: Serialize,
pub fn percolate<S, T>(field: S, source: T) -> PercolateQuery where
S: ToString,
T: Serialize,
Creates an instance of PercolateQuery
field
- The field of typepercolator
that holds the indexed queriessource
- Source to percolate
sourceimpl Query
impl Query
sourcepub fn pinned<Q>(values: PinnedQueryValues, organic: Q) -> PinnedQuery where
Q: Into<Query>,
pub fn pinned<Q>(values: PinnedQueryValues, organic: Q) -> PinnedQuery where
Q: Into<Query>,
Creates an instance of PinnedQuery
sourceimpl Query
impl Query
sourcepub fn rank_feature(field: impl Into<String>) -> RankFeatureQuery
pub fn rank_feature(field: impl Into<String>) -> RankFeatureQuery
Creates an instance of RankFeatureQuery
field
-rank_feature
orrank_features
field used to boost relevance scores
sourceimpl Query
impl Query
sourcepub fn script(script: Script) -> ScriptQuery
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
orfalse
sourceimpl Query
impl Query
sourcepub fn script_score<Q>(query: Q, script: Script) -> ScriptScoreQuery where
Q: Into<Query>,
pub fn script_score<Q>(query: Q, script: Script) -> ScriptScoreQuery where
Q: Into<Query>,
Creates an instance of ScriptScoreQuery
query
- Query used to return documentsscript
- Script used to compute the score of documents returned by thequery
sourceimpl Query
impl Query
sourcepub fn wrapper<S>(query: S) -> WrapperQuery where
S: ToString,
pub fn wrapper<S>(query: S) -> WrapperQuery where
S: ToString,
Creates an instance of WrapperQuery
sourceimpl Query
impl Query
sourcepub fn exists(field: impl Into<String>) -> ExistsQuery
pub fn exists(field: impl Into<String>) -> ExistsQuery
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 isnull
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
- Empty strings, such as
sourceimpl Query
impl Query
sourcepub fn fuzzy(field: impl Into<String>, value: impl Into<Term>) -> FuzzyQuery
pub fn fuzzy(field: impl Into<String>, value: impl Into<Term>) -> FuzzyQuery
Creates an instance of FuzzyQuery
field
- Field you wish to search.value
- Fuzzy you wish to find in the provided field.
sourceimpl Query
impl Query
sourcepub fn ids<I>(values: I) -> IdsQuery where
I: IntoIterator,
I::Item: ToString,
pub fn ids<I>(values: I) -> IdsQuery where
I: IntoIterator,
I::Item: ToString,
Creates an instance of IdsQuery
values
- An array of document IDs.
sourceimpl Query
impl Query
sourcepub fn prefix(field: impl Into<String>, value: impl Into<Term>) -> PrefixQuery
pub fn prefix(field: impl Into<String>, value: impl Into<Term>) -> PrefixQuery
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.
sourceimpl Query
impl Query
sourcepub fn range(field: impl Into<String>) -> RangeQuery
pub fn range(field: impl Into<String>) -> RangeQuery
Creates an instance of RangeQuery
field
- Field you wish to search.
sourceimpl Query
impl Query
sourcepub fn regexp<S>(field: S, value: S) -> RegexpQuery where
S: Into<String>,
pub fn regexp<S>(field: S, value: S) -> RegexpQuery where
S: Into<String>,
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.
sourceimpl Query
impl Query
sourcepub fn term(field: impl Into<String>, value: impl Into<Term>) -> TermQuery
pub fn term(field: impl Into<String>, value: impl Into<Term>) -> TermQuery
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.
sourceimpl Query
impl Query
sourcepub fn terms_lookup<S, T, U, V>(
field: S,
index: T,
id: U,
path: V
) -> TermsLookupQuery where
S: ToString,
T: ToString,
U: ToString,
V: ToString,
pub fn terms_lookup<S, T, U, V>(
field: S,
index: T,
id: U,
path: V
) -> TermsLookupQuery where
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.
sourceimpl Query
impl Query
sourcepub fn terms<S, I>(field: S, values: I) -> TermsQuery where
S: Into<String>,
I: Into<Terms>,
pub fn terms<S, I>(field: S, values: I) -> TermsQuery where
S: Into<String>,
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 theterms
query to a maximum of 65,536 terms. You can change this limit using theindex.max_terms_count setting
.
To use the field values of an existing document as search terms, use the terms lookup parameters.
sourceimpl Query
impl Query
sourcepub fn terms_set<S, T, U>(
field: S,
terms: T,
minimum_should_match: U
) -> TermsSetQuery where
S: ToString,
T: Into<Terms>,
U: Into<TermsSetMinimumShouldMatch>,
pub fn terms_set<S, T, U>(
field: S,
terms: T,
minimum_should_match: U
) -> TermsSetQuery where
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.
sourceimpl Query
impl Query
sourcepub fn wildcard(
field: impl Into<String>,
value: impl Into<Term>
) -> WildcardQuery
pub fn wildcard(
field: impl Into<String>,
value: impl Into<Term>
) -> WildcardQuery
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.
sourceimpl Query
impl Query
sourcepub fn match_all() -> MatchAllQuery
pub fn match_all() -> MatchAllQuery
Creates an instance of MatchAllQuery
sourceimpl Query
impl Query
sourcepub fn match_none() -> MatchNoneQuery
pub fn match_none() -> MatchNoneQuery
Creates an instance of MatchNoneQuery
Trait Implementations
sourceimpl From<BoostingQuery> for Query
impl From<BoostingQuery> for Query
sourcefn from(q: BoostingQuery) -> Self
fn from(q: BoostingQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ConstantScoreQuery> for Query
impl From<ConstantScoreQuery> for Query
sourcefn from(q: ConstantScoreQuery) -> Self
fn from(q: ConstantScoreQuery) -> Self
Converts to this type from the input type.
sourceimpl From<DisMaxQuery> for Query
impl From<DisMaxQuery> for Query
sourcefn from(q: DisMaxQuery) -> Self
fn from(q: DisMaxQuery) -> Self
Converts to this type from the input type.
sourceimpl From<DistanceFeatureQuery<DateTime<Utc>>> for Query
impl From<DistanceFeatureQuery<DateTime<Utc>>> for Query
sourcefn from(q: DistanceFeatureQuery<DateTime<Utc>>) -> Self
fn from(q: DistanceFeatureQuery<DateTime<Utc>>) -> Self
Converts to this type from the input type.
sourceimpl From<DistanceFeatureQuery<GeoPoint>> for Query
impl From<DistanceFeatureQuery<GeoPoint>> for Query
sourcefn from(q: DistanceFeatureQuery<GeoPoint>) -> Self
fn from(q: DistanceFeatureQuery<GeoPoint>) -> Self
Converts to this type from the input type.
sourceimpl From<ExistsQuery> for Query
impl From<ExistsQuery> for Query
sourcefn from(q: ExistsQuery) -> Self
fn from(q: ExistsQuery) -> Self
Converts to this type from the input type.
sourceimpl From<FunctionScoreQuery> for Query
impl From<FunctionScoreQuery> for Query
sourcefn from(q: FunctionScoreQuery) -> Self
fn from(q: FunctionScoreQuery) -> Self
Converts to this type from the input type.
sourceimpl From<FuzzyQuery> for Query
impl From<FuzzyQuery> for Query
sourcefn from(q: FuzzyQuery) -> Self
fn from(q: FuzzyQuery) -> Self
Converts to this type from the input type.
sourceimpl From<GeoBoundingBoxQuery> for Query
impl From<GeoBoundingBoxQuery> for Query
sourcefn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Converts to this type from the input type.
sourceimpl From<GeoDistanceQuery> for Query
impl From<GeoDistanceQuery> for Query
sourcefn from(q: GeoDistanceQuery) -> Self
fn from(q: GeoDistanceQuery) -> Self
Converts to this type from the input type.
sourceimpl From<GeoShapeLookupQuery> for Query
impl From<GeoShapeLookupQuery> for Query
sourcefn from(q: GeoShapeLookupQuery) -> Self
fn from(q: GeoShapeLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<GeoShapeQuery> for Query
impl From<GeoShapeQuery> for Query
sourcefn from(q: GeoShapeQuery) -> Self
fn from(q: GeoShapeQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchAllQuery> for Query
impl From<MatchAllQuery> for Query
sourcefn from(q: MatchAllQuery) -> Self
fn from(q: MatchAllQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchBoolPrefixQuery> for Query
impl From<MatchBoolPrefixQuery> for Query
sourcefn from(q: MatchBoolPrefixQuery) -> Self
fn from(q: MatchBoolPrefixQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchNoneQuery> for Query
impl From<MatchNoneQuery> for Query
sourcefn from(q: MatchNoneQuery) -> Self
fn from(q: MatchNoneQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchPhrasePrefixQuery> for Query
impl From<MatchPhrasePrefixQuery> for Query
sourcefn from(q: MatchPhrasePrefixQuery) -> Self
fn from(q: MatchPhrasePrefixQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchPhraseQuery> for Query
impl From<MatchPhraseQuery> for Query
sourcefn from(q: MatchPhraseQuery) -> Self
fn from(q: MatchPhraseQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MatchQuery> for Query
impl From<MatchQuery> for Query
sourcefn from(q: MatchQuery) -> Self
fn from(q: MatchQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MoreLikeThisQuery> for Query
impl From<MoreLikeThisQuery> for Query
sourcefn from(q: MoreLikeThisQuery) -> Self
fn from(q: MoreLikeThisQuery) -> Self
Converts to this type from the input type.
sourceimpl From<MultiMatchQuery> for Query
impl From<MultiMatchQuery> for Query
sourcefn from(q: MultiMatchQuery) -> Self
fn from(q: MultiMatchQuery) -> Self
Converts to this type from the input type.
sourceimpl From<NestedQuery> for Query
impl From<NestedQuery> for Query
sourcefn from(q: NestedQuery) -> Self
fn from(q: NestedQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PercolateLookupQuery> for Query
impl From<PercolateLookupQuery> for Query
sourcefn from(q: PercolateLookupQuery) -> Self
fn from(q: PercolateLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PercolateQuery> for Query
impl From<PercolateQuery> for Query
sourcefn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PinnedQuery> for Query
impl From<PinnedQuery> for Query
sourcefn from(q: PinnedQuery) -> Self
fn from(q: PinnedQuery) -> Self
Converts to this type from the input type.
sourceimpl From<PrefixQuery> for Query
impl From<PrefixQuery> for Query
sourcefn from(q: PrefixQuery) -> Self
fn from(q: PrefixQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RangeQuery> for Query
impl From<RangeQuery> for Query
sourcefn from(q: RangeQuery) -> Self
fn from(q: RangeQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RankFeatureLinearQuery> for Query
impl From<RankFeatureLinearQuery> for Query
sourcefn from(q: RankFeatureLinearQuery) -> Self
fn from(q: RankFeatureLinearQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RankFeatureLogarithmQuery> for Query
impl From<RankFeatureLogarithmQuery> for Query
sourcefn from(q: RankFeatureLogarithmQuery) -> Self
fn from(q: RankFeatureLogarithmQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RankFeatureQuery> for Query
impl From<RankFeatureQuery> for Query
sourcefn from(q: RankFeatureQuery) -> Self
fn from(q: RankFeatureQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RankFeatureSaturationQuery> for Query
impl From<RankFeatureSaturationQuery> for Query
sourcefn from(q: RankFeatureSaturationQuery) -> Self
fn from(q: RankFeatureSaturationQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RankFeatureSigmoidQuery> for Query
impl From<RankFeatureSigmoidQuery> for Query
sourcefn from(q: RankFeatureSigmoidQuery) -> Self
fn from(q: RankFeatureSigmoidQuery) -> Self
Converts to this type from the input type.
sourceimpl From<RegexpQuery> for Query
impl From<RegexpQuery> for Query
sourcefn from(q: RegexpQuery) -> Self
fn from(q: RegexpQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ScriptQuery> for Query
impl From<ScriptQuery> for Query
sourcefn from(q: ScriptQuery) -> Self
fn from(q: ScriptQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ScriptScoreQuery> for Query
impl From<ScriptScoreQuery> for Query
sourcefn from(q: ScriptScoreQuery) -> Self
fn from(q: ScriptScoreQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ShapeLookupQuery> for Query
impl From<ShapeLookupQuery> for Query
sourcefn from(q: ShapeLookupQuery) -> Self
fn from(q: ShapeLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ShapeQuery> for Query
impl From<ShapeQuery> for Query
sourcefn from(q: ShapeQuery) -> Self
fn from(q: ShapeQuery) -> Self
Converts to this type from the input type.
sourceimpl From<TermsLookupQuery> for Query
impl From<TermsLookupQuery> for Query
sourcefn from(q: TermsLookupQuery) -> Self
fn from(q: TermsLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<TermsQuery> for Query
impl From<TermsQuery> for Query
sourcefn from(q: TermsQuery) -> Self
fn from(q: TermsQuery) -> Self
Converts to this type from the input type.
sourceimpl From<TermsSetQuery> for Query
impl From<TermsSetQuery> for Query
sourcefn from(q: TermsSetQuery) -> Self
fn from(q: TermsSetQuery) -> Self
Converts to this type from the input type.
sourceimpl From<WildcardQuery> for Query
impl From<WildcardQuery> for Query
sourcefn from(q: WildcardQuery) -> Self
fn from(q: WildcardQuery) -> Self
Converts to this type from the input type.
sourceimpl From<WrapperQuery> for Query
impl From<WrapperQuery> for Query
sourcefn from(q: WrapperQuery) -> Self
fn from(q: WrapperQuery) -> Self
Converts to this type from the input type.
sourceimpl IntoIterator for Query
impl IntoIterator for Query
sourceimpl PartialEq<BoostingQuery> for Query
impl PartialEq<BoostingQuery> for Query
sourceimpl PartialEq<ConstantScoreQuery> for Query
impl PartialEq<ConstantScoreQuery> for Query
sourceimpl PartialEq<DisMaxQuery> for Query
impl PartialEq<DisMaxQuery> for Query
sourceimpl PartialEq<DistanceFeatureQuery<GeoPoint>> for Query
impl PartialEq<DistanceFeatureQuery<GeoPoint>> for Query
sourceimpl PartialEq<ExistsQuery> for Query
impl PartialEq<ExistsQuery> for Query
sourceimpl PartialEq<FunctionScoreQuery> for Query
impl PartialEq<FunctionScoreQuery> for Query
sourceimpl PartialEq<FuzzyQuery> for Query
impl PartialEq<FuzzyQuery> for Query
sourceimpl PartialEq<GeoBoundingBoxQuery> for Query
impl PartialEq<GeoBoundingBoxQuery> for Query
sourceimpl PartialEq<GeoDistanceQuery> for Query
impl PartialEq<GeoDistanceQuery> for Query
sourceimpl PartialEq<GeoShapeLookupQuery> for Query
impl PartialEq<GeoShapeLookupQuery> for Query
sourceimpl PartialEq<GeoShapeQuery> for Query
impl PartialEq<GeoShapeQuery> for Query
sourceimpl PartialEq<MatchAllQuery> for Query
impl PartialEq<MatchAllQuery> for Query
sourceimpl PartialEq<MatchBoolPrefixQuery> for Query
impl PartialEq<MatchBoolPrefixQuery> for Query
sourceimpl PartialEq<MatchNoneQuery> for Query
impl PartialEq<MatchNoneQuery> for Query
sourceimpl PartialEq<MatchPhrasePrefixQuery> for Query
impl PartialEq<MatchPhrasePrefixQuery> for Query
sourceimpl PartialEq<MatchPhraseQuery> for Query
impl PartialEq<MatchPhraseQuery> for Query
sourceimpl PartialEq<MatchQuery> for Query
impl PartialEq<MatchQuery> for Query
sourceimpl PartialEq<MoreLikeThisQuery> for Query
impl PartialEq<MoreLikeThisQuery> for Query
sourceimpl PartialEq<MultiMatchQuery> for Query
impl PartialEq<MultiMatchQuery> for Query
sourceimpl PartialEq<NestedQuery> for Query
impl PartialEq<NestedQuery> for Query
sourceimpl PartialEq<PercolateLookupQuery> for Query
impl PartialEq<PercolateLookupQuery> for Query
sourceimpl PartialEq<PercolateQuery> for Query
impl PartialEq<PercolateQuery> for Query
sourceimpl PartialEq<PinnedQuery> for Query
impl PartialEq<PinnedQuery> for Query
sourceimpl PartialEq<PrefixQuery> for Query
impl PartialEq<PrefixQuery> for Query
sourceimpl PartialEq<Query> for RangeQuery
impl PartialEq<Query> for RangeQuery
sourceimpl PartialEq<Query> for ConstantScoreQuery
impl PartialEq<Query> for ConstantScoreQuery
sourceimpl PartialEq<Query> for DistanceFeatureQuery<GeoPoint>
impl PartialEq<Query> for DistanceFeatureQuery<GeoPoint>
sourceimpl PartialEq<Query> for MatchQuery
impl PartialEq<Query> for MatchQuery
sourceimpl PartialEq<Query> for MatchBoolPrefixQuery
impl PartialEq<Query> for MatchBoolPrefixQuery
sourceimpl PartialEq<Query> for MatchPhrasePrefixQuery
impl PartialEq<Query> for MatchPhrasePrefixQuery
sourceimpl PartialEq<Query> for MatchAllQuery
impl PartialEq<Query> for MatchAllQuery
sourceimpl PartialEq<Query> for MatchNoneQuery
impl PartialEq<Query> for MatchNoneQuery
sourceimpl PartialEq<Query> for PrefixQuery
impl PartialEq<Query> for PrefixQuery
sourceimpl PartialEq<Query> for MatchPhraseQuery
impl PartialEq<Query> for MatchPhraseQuery
sourceimpl PartialEq<Query> for MultiMatchQuery
impl PartialEq<Query> for MultiMatchQuery
sourceimpl PartialEq<Query> for NestedQuery
impl PartialEq<Query> for NestedQuery
sourceimpl PartialEq<Query> for BoostingQuery
impl PartialEq<Query> for BoostingQuery
sourceimpl PartialEq<Query> for DisMaxQuery
impl PartialEq<Query> for DisMaxQuery
sourceimpl PartialEq<Query> for PinnedQuery
impl PartialEq<Query> for PinnedQuery
sourceimpl PartialEq<Query> for PercolateQuery
impl PartialEq<Query> for PercolateQuery
sourceimpl PartialEq<Query> for PercolateLookupQuery
impl PartialEq<Query> for PercolateLookupQuery
sourceimpl PartialEq<Query> for FunctionScoreQuery
impl PartialEq<Query> for FunctionScoreQuery
sourceimpl PartialEq<Query> for RankFeatureQuery
impl PartialEq<Query> for RankFeatureQuery
sourceimpl PartialEq<Query> for RegexpQuery
impl PartialEq<Query> for RegexpQuery
sourceimpl PartialEq<Query> for RankFeatureSaturationQuery
impl PartialEq<Query> for RankFeatureSaturationQuery
sourceimpl PartialEq<Query> for RankFeatureLogarithmQuery
impl PartialEq<Query> for RankFeatureLogarithmQuery
sourceimpl PartialEq<Query> for RankFeatureSigmoidQuery
impl PartialEq<Query> for RankFeatureSigmoidQuery
sourceimpl PartialEq<Query> for RankFeatureLinearQuery
impl PartialEq<Query> for RankFeatureLinearQuery
sourceimpl PartialEq<Query> for MoreLikeThisQuery
impl PartialEq<Query> for MoreLikeThisQuery
sourceimpl PartialEq<Query> for FuzzyQuery
impl PartialEq<Query> for FuzzyQuery
sourceimpl PartialEq<Query> for GeoDistanceQuery
impl PartialEq<Query> for GeoDistanceQuery
sourceimpl PartialEq<Query> for GeoBoundingBoxQuery
impl PartialEq<Query> for GeoBoundingBoxQuery
sourceimpl PartialEq<Query> for GeoShapeLookupQuery
impl PartialEq<Query> for GeoShapeLookupQuery
sourceimpl PartialEq<Query> for GeoShapeQuery
impl PartialEq<Query> for GeoShapeQuery
sourceimpl PartialEq<Query> for WildcardQuery
impl PartialEq<Query> for WildcardQuery
sourceimpl PartialEq<Query> for ShapeLookupQuery
impl PartialEq<Query> for ShapeLookupQuery
sourceimpl PartialEq<Query> for ShapeQuery
impl PartialEq<Query> for ShapeQuery
sourceimpl PartialEq<Query> for WrapperQuery
impl PartialEq<Query> for WrapperQuery
sourceimpl PartialEq<Query> for ScriptQuery
impl PartialEq<Query> for ScriptQuery
sourceimpl PartialEq<Query> for ScriptScoreQuery
impl PartialEq<Query> for ScriptScoreQuery
sourceimpl PartialEq<Query> for TermsSetQuery
impl PartialEq<Query> for TermsSetQuery
sourceimpl PartialEq<Query> for TermsQuery
impl PartialEq<Query> for TermsQuery
sourceimpl PartialEq<Query> for TermsLookupQuery
impl PartialEq<Query> for TermsLookupQuery
sourceimpl PartialEq<Query> for ExistsQuery
impl PartialEq<Query> for ExistsQuery
sourceimpl PartialEq<RangeQuery> for Query
impl PartialEq<RangeQuery> for Query
sourceimpl PartialEq<RankFeatureLinearQuery> for Query
impl PartialEq<RankFeatureLinearQuery> for Query
sourceimpl PartialEq<RankFeatureLogarithmQuery> for Query
impl PartialEq<RankFeatureLogarithmQuery> for Query
sourceimpl PartialEq<RankFeatureQuery> for Query
impl PartialEq<RankFeatureQuery> for Query
sourceimpl PartialEq<RankFeatureSaturationQuery> for Query
impl PartialEq<RankFeatureSaturationQuery> for Query
sourceimpl PartialEq<RankFeatureSigmoidQuery> for Query
impl PartialEq<RankFeatureSigmoidQuery> for Query
sourceimpl PartialEq<RegexpQuery> for Query
impl PartialEq<RegexpQuery> for Query
sourceimpl PartialEq<ScriptQuery> for Query
impl PartialEq<ScriptQuery> for Query
sourceimpl PartialEq<ScriptScoreQuery> for Query
impl PartialEq<ScriptScoreQuery> for Query
sourceimpl PartialEq<ShapeLookupQuery> for Query
impl PartialEq<ShapeLookupQuery> for Query
sourceimpl PartialEq<ShapeQuery> for Query
impl PartialEq<ShapeQuery> for Query
sourceimpl PartialEq<TermsLookupQuery> for Query
impl PartialEq<TermsLookupQuery> for Query
sourceimpl PartialEq<TermsQuery> for Query
impl PartialEq<TermsQuery> for Query
sourceimpl PartialEq<TermsSetQuery> for Query
impl PartialEq<TermsSetQuery> for Query
sourceimpl PartialEq<WildcardQuery> for Query
impl PartialEq<WildcardQuery> for Query
sourceimpl PartialEq<WrapperQuery> for Query
impl PartialEq<WrapperQuery> for Query
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more