pub enum Query {
Show 61 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),
Knn(KnnQuery),
}
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)
Knn(KnnQuery)
Implementations§
Source§impl Query
impl Query
Sourcepub fn boosting<Q, B>(
positive: Q,
negative: Q,
negative_boost: B,
) -> BoostingQuery
pub fn boosting<Q, B>( positive: Q, negative: Q, negative_boost: B, ) -> BoostingQuery
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.
Source§impl Query
impl Query
Sourcepub fn constant_score<T>(filter: T) -> ConstantScoreQuery
pub fn constant_score<T>(filter: T) -> 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.
Source§impl Query
impl Query
Sourcepub fn dis_max() -> DisMaxQuery
pub fn dis_max() -> DisMaxQuery
Creates an instance of DisMaxQuery
Source§impl Query
impl Query
Sourcepub fn function_score() -> FunctionScoreQuery
pub fn function_score() -> FunctionScoreQuery
Creates an instance of FunctionScoreQuery
Source§impl Query
impl Query
Sourcepub fn combined_fields<F, S>(fields: F, query: S) -> CombinedFieldsQuery
pub fn combined_fields<F, S>(fields: F, query: S) -> CombinedFieldsQuery
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
impl Query
Sourcepub fn match_bool_prefix<T, U>(field: T, query: U) -> MatchBoolPrefixQuery
pub fn match_bool_prefix<T, U>(field: T, query: U) -> 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>
Source§impl Query
impl Query
Sourcepub fn match_phrase_prefix<T, U>(field: T, query: U) -> MatchPhrasePrefixQuery
pub fn match_phrase_prefix<T, U>(field: T, query: U) -> MatchPhrasePrefixQuery
Creates an instance of MatchPhrasePrefixQuery
field
- Field you wish to search.query
- Text you wish to find in the provided<field>
.
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.
Source§impl Query
impl Query
Sourcepub fn match_phrase<T, U>(field: T, query: U) -> MatchPhraseQuery
pub fn match_phrase<T, U>(field: T, query: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn match<T, U>(field: T, query: U) -> MatchQuery
pub fn match<T, U>(field: T, query: U) -> MatchQuery
Creates an instance of MatchQuery
Source§impl Query
impl Query
Sourcepub fn multi_match<F, S>(fields: F, query: S) -> MultiMatchQuery
pub fn multi_match<F, S>(fields: F, query: S) -> MultiMatchQuery
Creates an instance of MultiMatchQuery
Source§impl Query
impl Query
Sourcepub fn query_string<S>(query: S) -> QueryStringQuery
pub fn query_string<S>(query: S) -> QueryStringQuery
Creates an instance of QueryStringQuery
query
- Query string you wish to parse and use for search. See Simple query string syntax.
Source§impl Query
impl Query
Sourcepub fn simple_query_string<S>(query: S) -> SimpleQueryStringQuery
pub fn simple_query_string<S>(query: S) -> SimpleQueryStringQuery
Creates an instance of SimpleQueryStringQuery
query
- Query string you wish to parse and use for search. See Simple query string syntax.
Source§impl Query
impl Query
Sourcepub fn geo_bounding_box<T, U>(field: T, bounding_box: U) -> GeoBoundingBoxQuery
pub fn geo_bounding_box<T, U>(field: T, bounding_box: U) -> GeoBoundingBoxQuery
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
impl Query
Sourcepub fn geo_distance<T, U, V>(
field: T,
origin: U,
distance: V,
) -> GeoDistanceQuery
pub fn geo_distance<T, U, V>( field: T, origin: U, distance: V, ) -> GeoDistanceQuery
Creates an instance of GeoDistanceQuery
field
- Field you wish to searchorigin
- GeoPoint to measure distance todistance
- Distance threshold
Source§impl Query
impl Query
Sourcepub fn geo_shape_lookup<S, T>(field: S, id: T) -> GeoShapeLookupQuery
pub fn geo_shape_lookup<S, T>(field: S, id: T) -> GeoShapeLookupQuery
Creates an instance of GeoShapeLookupQuery
field
- Field you wish to searchid
- The ID of the document that containing the pre-indexed shape
Source§impl Query
impl Query
Sourcepub fn geo_shape<S, T>(field: S, shape: T) -> GeoShapeQuery
pub fn geo_shape<S, T>(field: S, shape: T) -> GeoShapeQuery
Creates an instance of GeoShapeQuery
field
- Field you wish to searchshape
- Shape you with to search
Source§impl Query
impl Query
Sourcepub fn has_child<T, U>(type: T, query: U) -> HasChildQuery
pub fn has_child<T, U>(type: T, query: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn has_parent<T, U>(parent_type: T, query: U) -> HasParentQuery
pub fn has_parent<T, U>(parent_type: T, query: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn nested<T, U>(path: T, query: U) -> NestedQuery
pub fn nested<T, U>(path: T, query: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn parent_id<T, U>(type: T, id: U) -> ParentIdQuery
pub fn parent_id<T, U>(type: T, id: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn shape_lookup<S, T>(field: S, id: T) -> ShapeLookupQuery
pub fn shape_lookup<S, T>(field: S, id: T) -> ShapeLookupQuery
Creates an instance of ShapeLookupQuery
field
- Field you wish to searchid
- The ID of the document that containing the pre-indexed shape
Source§impl Query
impl Query
Sourcepub fn shape<S, T>(field: S, shape: T) -> ShapeQuery
pub fn shape<S, T>(field: S, shape: T) -> ShapeQuery
Creates an instance of ShapeQuery
field
- Field you wish to searchshape
- Shape you with to search
Source§impl Query
impl Query
Sourcepub fn span_containing<T, U>(little: T, big: U) -> SpanContainingQuery
pub fn span_containing<T, U>(little: T, big: U) -> SpanContainingQuery
Creates an instance of SpanContainingQuery
Source§impl Query
impl Query
Sourcepub fn span_field_masking<Q, F>(query: Q, field: F) -> SpanFieldMaskingQuery
pub fn span_field_masking<Q, F>(query: Q, field: F) -> SpanFieldMaskingQuery
Creates an instance of SpanFieldMaskingQuery
Source§impl Query
impl Query
Sourcepub fn span_first<T>(match: T, end: u32) -> SpanFirstQuery
pub fn span_first<T>(match: T, end: u32) -> SpanFirstQuery
Creates an instance of SpanFirstQuery
Source§impl Query
impl Query
Sourcepub fn span_multi<Q>(match: Q) -> SpanMultiQuerywhere
Q: Into<MultiTermQuery>,
pub fn span_multi<Q>(match: Q) -> SpanMultiQuerywhere
Q: Into<MultiTermQuery>,
Creates an instance of SpanMultiQuery
Source§impl Query
impl Query
Sourcepub fn span_near<T>(clauses: T) -> SpanNearQuery
pub fn span_near<T>(clauses: T) -> SpanNearQuery
Creates an instance of SpanNearQuery
Source§impl Query
impl Query
Sourcepub fn span_not<T, U>(exclude: T, include: U) -> SpanNotQuery
pub fn span_not<T, U>(exclude: T, include: U) -> SpanNotQuery
Creates an instance of SpanNotQuery
Source§impl Query
impl Query
Sourcepub fn span_or<T>(clauses: T) -> SpanOrQuery
pub fn span_or<T>(clauses: T) -> SpanOrQuery
Creates an instance of SpanOrQuery
Source§impl Query
impl Query
Sourcepub fn span_term<T, U>(field: T, value: U) -> SpanTermQuery
pub fn span_term<T, U>(field: T, value: U) -> SpanTermQuery
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
impl Query
Sourcepub fn span_within<T, U>(little: T, big: U) -> SpanWithinQuery
pub fn span_within<T, U>(little: T, big: U) -> SpanWithinQuery
Creates an instance of SpanWithinQuery
Source§impl Query
impl Query
Sourcepub fn distance_feature<T, O>(
field: T,
origin: O,
pivot: <O as Origin>::Pivot,
) -> DistanceFeatureQuery<O>where
T: ToString,
O: Origin,
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:
- 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
.
Source§impl Query
impl Query
Sourcepub fn knn<T>(field: T, query_vector: Vec<f32>) -> KnnQuerywhere
T: ToString,
pub fn knn<T>(field: T, query_vector: Vec<f32>) -> KnnQuerywhere
T: ToString,
Creates an instance of KnnQuery
field
- The name of the vector field to search against. Must be a dense_vector field with indexing enabled.query_vector
- Query vector. Must have the same number of dimensions as the vector field you are searching against.
Source§impl Query
impl Query
Sourcepub fn more_like_this<I>(like: I) -> MoreLikeThisQuery
pub fn more_like_this<I>(like: I) -> MoreLikeThisQuery
Creates an instance of MoreLikeThisQuery
like
- free form text and/or a single or multiple documents.
Source§impl Query
impl Query
Sourcepub fn percolate_lookup<S, T, U>(
field: S,
index: T,
id: U,
) -> PercolateLookupQuery
pub fn percolate_lookup<S, T, U>( field: S, index: T, id: U, ) -> PercolateLookupQuery
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
Source§impl Query
impl Query
Sourcepub fn percolate<S, T>(field: S, source: T) -> PercolateQuery
pub fn percolate<S, T>(field: S, source: T) -> PercolateQuery
Creates an instance of PercolateQuery
field
- The field of typepercolator
that holds the indexed queriessource
- Source to percolate
Source§impl Query
impl Query
Sourcepub fn pinned<Q>(values: PinnedQueryValues, organic: Q) -> PinnedQuery
pub fn pinned<Q>(values: PinnedQueryValues, organic: Q) -> PinnedQuery
Creates an instance of PinnedQuery
Source§impl Query
impl Query
Sourcepub fn rank_feature<T>(field: T) -> RankFeatureQuerywhere
T: ToString,
pub fn rank_feature<T>(field: T) -> RankFeatureQuerywhere
T: ToString,
Creates an instance of RankFeatureQuery
field
-rank_feature
orrank_features
field used to boost relevance scores
Source§impl 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
Source§impl Query
impl Query
Sourcepub fn script_score<Q>(query: Q, script: Script) -> ScriptScoreQuery
pub fn script_score<Q>(query: Q, script: Script) -> ScriptScoreQuery
Creates an instance of ScriptScoreQuery
query
- Query used to return documentsscript
- Script used to compute the score of documents returned by thequery
Source§impl Query
impl Query
Sourcepub fn wrapper<S>(query: S) -> WrapperQuerywhere
S: ToString,
pub fn wrapper<S>(query: S) -> WrapperQuerywhere
S: ToString,
Creates an instance of WrapperQuery
Source§impl Query
impl Query
Sourcepub fn exists<T>(field: T) -> ExistsQuerywhere
T: ToString,
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 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
Source§impl Query
impl Query
Sourcepub fn fuzzy<T, U>(field: T, value: U) -> FuzzyQuery
pub fn fuzzy<T, U>(field: T, value: U) -> FuzzyQuery
Creates an instance of FuzzyQuery
field
- Field you wish to search.value
- Fuzzy you wish to find in the provided field.
Source§impl Query
impl Query
Sourcepub fn ids<I>(values: I) -> IdsQuery
pub fn ids<I>(values: I) -> IdsQuery
Creates an instance of IdsQuery
values
- An array of document IDs.
Source§impl Query
impl Query
Sourcepub fn prefix<T, U>(field: T, value: U) -> PrefixQuery
pub fn prefix<T, U>(field: T, value: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn range<T>(field: T) -> RangeQuerywhere
T: ToString,
pub fn range<T>(field: T) -> RangeQuerywhere
T: ToString,
Creates an instance of RangeQuery
field
- Field you wish to search.
Source§impl Query
impl Query
Sourcepub fn regexp<S>(field: S, value: S) -> RegexpQuerywhere
S: ToString,
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
impl Query
Source§impl Query
impl Query
Sourcepub fn terms_lookup<S, T, U, V>(
field: S,
index: T,
id: U,
path: V,
) -> TermsLookupQuery
pub fn terms_lookup<S, T, U, V>( field: S, index: T, id: U, path: V, ) -> TermsLookupQuery
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
impl Query
Sourcepub fn terms<S, I>(field: S, terms: I) -> TermsQuery
pub fn terms<S, I>(field: S, terms: I) -> TermsQuery
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.
Source§impl Query
impl Query
Sourcepub fn terms_set<S, T, U>(
field: S,
terms: T,
minimum_should_match: U,
) -> TermsSetQuery
pub fn terms_set<S, T, U>( field: S, terms: T, minimum_should_match: U, ) -> TermsSetQuery
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
impl Query
Sourcepub fn wildcard<T, U>(field: T, value: U) -> WildcardQuery
pub fn wildcard<T, U>(field: T, value: U) -> 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.
Source§impl Query
impl Query
Sourcepub fn match_all() -> MatchAllQuery
pub fn match_all() -> MatchAllQuery
Creates an instance of MatchAllQuery
Source§impl Query
impl Query
Sourcepub fn match_none() -> MatchNoneQuery
pub fn match_none() -> MatchNoneQuery
Creates an instance of MatchNoneQuery
Trait Implementations§
Source§impl From<BoostingQuery> for Query
impl From<BoostingQuery> for Query
Source§fn from(q: BoostingQuery) -> Self
fn from(q: BoostingQuery) -> Self
Source§impl From<CombinedFieldsQuery> for Query
impl From<CombinedFieldsQuery> for Query
Source§fn from(q: CombinedFieldsQuery) -> Self
fn from(q: CombinedFieldsQuery) -> Self
Source§impl From<ConstantScoreQuery> for Query
impl From<ConstantScoreQuery> for Query
Source§fn from(q: ConstantScoreQuery) -> Self
fn from(q: ConstantScoreQuery) -> Self
Source§impl From<DisMaxQuery> for Query
impl From<DisMaxQuery> for Query
Source§fn from(q: DisMaxQuery) -> Self
fn from(q: DisMaxQuery) -> Self
Source§impl From<DistanceFeatureQuery<GeoLocation>> for Query
impl From<DistanceFeatureQuery<GeoLocation>> for Query
Source§fn from(q: DistanceFeatureQuery<GeoLocation>) -> Self
fn from(q: DistanceFeatureQuery<GeoLocation>) -> Self
Source§impl From<ExistsQuery> for Query
impl From<ExistsQuery> for Query
Source§fn from(q: ExistsQuery) -> Self
fn from(q: ExistsQuery) -> Self
Source§impl From<FunctionScoreQuery> for Query
impl From<FunctionScoreQuery> for Query
Source§fn from(q: FunctionScoreQuery) -> Self
fn from(q: FunctionScoreQuery) -> Self
Source§impl From<FuzzyQuery> for Query
impl From<FuzzyQuery> for Query
Source§fn from(q: FuzzyQuery) -> Self
fn from(q: FuzzyQuery) -> Self
Source§impl From<GeoBoundingBoxQuery> for Query
impl From<GeoBoundingBoxQuery> for Query
Source§fn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Source§impl From<GeoDistanceQuery> for Query
impl From<GeoDistanceQuery> for Query
Source§fn from(q: GeoDistanceQuery) -> Self
fn from(q: GeoDistanceQuery) -> Self
Source§impl From<GeoShapeLookupQuery> for Query
impl From<GeoShapeLookupQuery> for Query
Source§fn from(q: GeoShapeLookupQuery) -> Self
fn from(q: GeoShapeLookupQuery) -> Self
Source§impl From<GeoShapeQuery> for Query
impl From<GeoShapeQuery> for Query
Source§fn from(q: GeoShapeQuery) -> Self
fn from(q: GeoShapeQuery) -> Self
Source§impl From<HasChildQuery> for Query
impl From<HasChildQuery> for Query
Source§fn from(q: HasChildQuery) -> Self
fn from(q: HasChildQuery) -> Self
Source§impl From<HasParentQuery> for Query
impl From<HasParentQuery> for Query
Source§fn from(q: HasParentQuery) -> Self
fn from(q: HasParentQuery) -> Self
Source§impl From<MatchAllQuery> for Query
impl From<MatchAllQuery> for Query
Source§fn from(q: MatchAllQuery) -> Self
fn from(q: MatchAllQuery) -> Self
Source§impl From<MatchBoolPrefixQuery> for Query
impl From<MatchBoolPrefixQuery> for Query
Source§fn from(q: MatchBoolPrefixQuery) -> Self
fn from(q: MatchBoolPrefixQuery) -> Self
Source§impl From<MatchNoneQuery> for Query
impl From<MatchNoneQuery> for Query
Source§fn from(q: MatchNoneQuery) -> Self
fn from(q: MatchNoneQuery) -> Self
Source§impl From<MatchPhrasePrefixQuery> for Query
impl From<MatchPhrasePrefixQuery> for Query
Source§fn from(q: MatchPhrasePrefixQuery) -> Self
fn from(q: MatchPhrasePrefixQuery) -> Self
Source§impl From<MatchPhraseQuery> for Query
impl From<MatchPhraseQuery> for Query
Source§fn from(q: MatchPhraseQuery) -> Self
fn from(q: MatchPhraseQuery) -> Self
Source§impl From<MatchQuery> for Query
impl From<MatchQuery> for Query
Source§fn from(q: MatchQuery) -> Self
fn from(q: MatchQuery) -> Self
Source§impl From<MoreLikeThisQuery> for Query
impl From<MoreLikeThisQuery> for Query
Source§fn from(q: MoreLikeThisQuery) -> Self
fn from(q: MoreLikeThisQuery) -> Self
Source§impl From<MultiMatchQuery> for Query
impl From<MultiMatchQuery> for Query
Source§fn from(q: MultiMatchQuery) -> Self
fn from(q: MultiMatchQuery) -> Self
Source§impl From<NestedQuery> for Query
impl From<NestedQuery> for Query
Source§fn from(q: NestedQuery) -> Self
fn from(q: NestedQuery) -> Self
Source§impl From<ParentIdQuery> for Query
impl From<ParentIdQuery> for Query
Source§fn from(q: ParentIdQuery) -> Self
fn from(q: ParentIdQuery) -> Self
Source§impl From<PercolateLookupQuery> for Query
impl From<PercolateLookupQuery> for Query
Source§fn from(q: PercolateLookupQuery) -> Self
fn from(q: PercolateLookupQuery) -> Self
Source§impl From<PercolateQuery> for Query
impl From<PercolateQuery> for Query
Source§fn from(q: PercolateQuery) -> Self
fn from(q: PercolateQuery) -> Self
Source§impl From<PinnedQuery> for Query
impl From<PinnedQuery> for Query
Source§fn from(q: PinnedQuery) -> Self
fn from(q: PinnedQuery) -> Self
Source§impl From<PrefixQuery> for Query
impl From<PrefixQuery> for Query
Source§fn from(q: PrefixQuery) -> Self
fn from(q: PrefixQuery) -> Self
Source§impl From<QueryStringQuery> for Query
impl From<QueryStringQuery> for Query
Source§fn from(q: QueryStringQuery) -> Self
fn from(q: QueryStringQuery) -> Self
Source§impl From<RangeQuery> for Query
impl From<RangeQuery> for Query
Source§fn from(q: RangeQuery) -> Self
fn from(q: RangeQuery) -> Self
Source§impl From<RankFeatureLinearQuery> for Query
impl From<RankFeatureLinearQuery> for Query
Source§fn from(q: RankFeatureLinearQuery) -> Self
fn from(q: RankFeatureLinearQuery) -> Self
Source§impl From<RankFeatureLogarithmQuery> for Query
impl From<RankFeatureLogarithmQuery> for Query
Source§fn from(q: RankFeatureLogarithmQuery) -> Self
fn from(q: RankFeatureLogarithmQuery) -> Self
Source§impl From<RankFeatureQuery> for Query
impl From<RankFeatureQuery> for Query
Source§fn from(q: RankFeatureQuery) -> Self
fn from(q: RankFeatureQuery) -> Self
Source§impl From<RankFeatureSaturationQuery> for Query
impl From<RankFeatureSaturationQuery> for Query
Source§fn from(q: RankFeatureSaturationQuery) -> Self
fn from(q: RankFeatureSaturationQuery) -> Self
Source§impl From<RankFeatureSigmoidQuery> for Query
impl From<RankFeatureSigmoidQuery> for Query
Source§fn from(q: RankFeatureSigmoidQuery) -> Self
fn from(q: RankFeatureSigmoidQuery) -> Self
Source§impl From<RegexpQuery> for Query
impl From<RegexpQuery> for Query
Source§fn from(q: RegexpQuery) -> Self
fn from(q: RegexpQuery) -> Self
Source§impl From<ScriptQuery> for Query
impl From<ScriptQuery> for Query
Source§fn from(q: ScriptQuery) -> Self
fn from(q: ScriptQuery) -> Self
Source§impl From<ScriptScoreQuery> for Query
impl From<ScriptScoreQuery> for Query
Source§fn from(q: ScriptScoreQuery) -> Self
fn from(q: ScriptScoreQuery) -> Self
Source§impl From<ShapeLookupQuery> for Query
impl From<ShapeLookupQuery> for Query
Source§fn from(q: ShapeLookupQuery) -> Self
fn from(q: ShapeLookupQuery) -> Self
Source§impl From<ShapeQuery> for Query
impl From<ShapeQuery> for Query
Source§fn from(q: ShapeQuery) -> Self
fn from(q: ShapeQuery) -> Self
Source§impl From<SimpleQueryStringQuery> for Query
impl From<SimpleQueryStringQuery> for Query
Source§fn from(q: SimpleQueryStringQuery) -> Self
fn from(q: SimpleQueryStringQuery) -> Self
Source§impl From<SpanContainingQuery> for Query
impl From<SpanContainingQuery> for Query
Source§fn from(q: SpanContainingQuery) -> Self
fn from(q: SpanContainingQuery) -> Self
Source§impl From<SpanFieldMaskingQuery> for Query
impl From<SpanFieldMaskingQuery> for Query
Source§fn from(q: SpanFieldMaskingQuery) -> Self
fn from(q: SpanFieldMaskingQuery) -> Self
Source§impl From<SpanFirstQuery> for Query
impl From<SpanFirstQuery> for Query
Source§fn from(q: SpanFirstQuery) -> Self
fn from(q: SpanFirstQuery) -> Self
Source§impl From<SpanMultiQuery> for Query
impl From<SpanMultiQuery> for Query
Source§fn from(q: SpanMultiQuery) -> Self
fn from(q: SpanMultiQuery) -> Self
Source§impl From<SpanNearQuery> for Query
impl From<SpanNearQuery> for Query
Source§fn from(q: SpanNearQuery) -> Self
fn from(q: SpanNearQuery) -> Self
Source§impl From<SpanNotQuery> for Query
impl From<SpanNotQuery> for Query
Source§fn from(q: SpanNotQuery) -> Self
fn from(q: SpanNotQuery) -> Self
Source§impl From<SpanOrQuery> for Query
impl From<SpanOrQuery> for Query
Source§fn from(q: SpanOrQuery) -> Self
fn from(q: SpanOrQuery) -> Self
Source§impl From<SpanTermQuery> for Query
impl From<SpanTermQuery> for Query
Source§fn from(q: SpanTermQuery) -> Self
fn from(q: SpanTermQuery) -> Self
Source§impl From<SpanWithinQuery> for Query
impl From<SpanWithinQuery> for Query
Source§fn from(q: SpanWithinQuery) -> Self
fn from(q: SpanWithinQuery) -> Self
Source§impl From<TermsLookupQuery> for Query
impl From<TermsLookupQuery> for Query
Source§fn from(q: TermsLookupQuery) -> Self
fn from(q: TermsLookupQuery) -> Self
Source§impl From<TermsQuery> for Query
impl From<TermsQuery> for Query
Source§fn from(q: TermsQuery) -> Self
fn from(q: TermsQuery) -> Self
Source§impl From<TermsSetQuery> for Query
impl From<TermsSetQuery> for Query
Source§fn from(q: TermsSetQuery) -> Self
fn from(q: TermsSetQuery) -> Self
Source§impl From<WildcardQuery> for Query
impl From<WildcardQuery> for Query
Source§fn from(q: WildcardQuery) -> Self
fn from(q: WildcardQuery) -> Self
Source§impl From<WrapperQuery> for Query
impl From<WrapperQuery> for Query
Source§fn from(q: WrapperQuery) -> Self
fn from(q: WrapperQuery) -> Self
Source§impl IntoIterator for Query
impl IntoIterator for Query
Source§impl PartialEq<BoostingQuery> for Query
impl PartialEq<BoostingQuery> for Query
Source§impl PartialEq<CombinedFieldsQuery> for Query
impl PartialEq<CombinedFieldsQuery> for Query
Source§impl PartialEq<ConstantScoreQuery> for Query
impl PartialEq<ConstantScoreQuery> for Query
Source§impl PartialEq<DisMaxQuery> for Query
impl PartialEq<DisMaxQuery> for Query
Source§impl PartialEq<DistanceFeatureQuery<DateTime<Utc>>> for Query
impl PartialEq<DistanceFeatureQuery<DateTime<Utc>>> for Query
Source§impl PartialEq<DistanceFeatureQuery<GeoLocation>> for Query
impl PartialEq<DistanceFeatureQuery<GeoLocation>> for Query
Source§fn eq(&self, other: &DistanceFeatureQuery<GeoLocation>) -> bool
fn eq(&self, other: &DistanceFeatureQuery<GeoLocation>) -> bool
self
and other
values to be equal, and is used by ==
.