pub enum Query {
Show 31 variants
MatchAll(Box<MatchAllQuery>),
Match(Box<MatchQuery>),
MultiMatch(Box<MultiMatchQuery>),
Common(Box<CommonQuery>),
QueryString(Box<QueryStringQuery>),
SimpleQueryString(Box<SimpleQueryStringQuery>),
Term(Box<TermQuery>),
Terms(Box<TermsQuery>),
Range(Box<RangeQuery>),
Exists(Box<ExistsQuery>),
Prefix(Box<PrefixQuery>),
Wildcard(Box<WildcardQuery>),
Regexp(Box<RegexpQuery>),
Fuzzy(Box<FuzzyQuery>),
Type(Box<TypeQuery>),
Ids(Box<IdsQuery>),
ConstantScore(Box<ConstantScoreQuery>),
Bool(Box<BoolQuery>),
DisMax(Box<DisMaxQuery>),
FunctionScore(Box<FunctionScoreQuery>),
Boosting(Box<BoostingQuery>),
Indices(Box<IndicesQuery>),
Nested(Box<NestedQuery>),
HasChild(Box<HasChildQuery>),
HasParent(Box<HasParentQuery>),
GeoShape(Box<GeoShapeQuery>),
GeoBoundingBox(Box<GeoBoundingBoxQuery>),
GeoDistance(Box<GeoDistanceQuery>),
GeoPolygon(Box<GeoPolygonQuery>),
GeohashCell(Box<GeohashCellQuery>),
MoreLikeThis(Box<MoreLikeThisQuery>),
}Expand description
Query represents all available queries
Each value is boxed as Queries can be recursive, they also vary significantly in size
Variants§
MatchAll(Box<MatchAllQuery>)
Match(Box<MatchQuery>)
MultiMatch(Box<MultiMatchQuery>)
Common(Box<CommonQuery>)
QueryString(Box<QueryStringQuery>)
SimpleQueryString(Box<SimpleQueryStringQuery>)
Term(Box<TermQuery>)
Terms(Box<TermsQuery>)
Range(Box<RangeQuery>)
Exists(Box<ExistsQuery>)
Prefix(Box<PrefixQuery>)
Wildcard(Box<WildcardQuery>)
Regexp(Box<RegexpQuery>)
Fuzzy(Box<FuzzyQuery>)
Type(Box<TypeQuery>)
Ids(Box<IdsQuery>)
ConstantScore(Box<ConstantScoreQuery>)
Bool(Box<BoolQuery>)
DisMax(Box<DisMaxQuery>)
FunctionScore(Box<FunctionScoreQuery>)
Boosting(Box<BoostingQuery>)
Indices(Box<IndicesQuery>)
Nested(Box<NestedQuery>)
HasChild(Box<HasChildQuery>)
HasParent(Box<HasParentQuery>)
GeoShape(Box<GeoShapeQuery>)
GeoBoundingBox(Box<GeoBoundingBoxQuery>)
GeoDistance(Box<GeoDistanceQuery>)
GeoPolygon(Box<GeoPolygonQuery>)
GeohashCell(Box<GeohashCellQuery>)
MoreLikeThis(Box<MoreLikeThisQuery>)
Implementations§
Source§impl Query
impl Query
pub fn build_constant_score<A>(query: A) -> ConstantScoreQuery
Source§impl Query
impl Query
pub fn build_dis_max<A>(queries: A) -> DisMaxQuery
Source§impl Query
impl Query
pub fn build_function_score() -> FunctionScoreQuery
Source§impl Query
impl Query
pub fn build_boosting() -> BoostingQuery
Source§impl Query
impl Query
pub fn build_indices<A, B>(indices: A, query: B) -> IndicesQuery
Source§impl Query
impl Query
pub fn build_match<A, B>(field: A, query: B) -> MatchQuery
Source§impl Query
impl Query
pub fn build_multi_match<A, B>(fields: A, query: B) -> MultiMatchQuery
Source§impl Query
impl Query
pub fn build_common<A>(query: A) -> CommonQuery
Source§impl Query
impl Query
pub fn build_query_string<A: Into<String>>(query: A) -> QueryStringQuery
Source§impl Query
impl Query
pub fn build_simple_query_string<A: Into<String>>( query: A, ) -> SimpleQueryStringQuery
Source§impl Query
impl Query
pub fn build_geo_shape<A>(field: A) -> GeoShapeQuery
Source§impl Query
impl Query
pub fn build_geo_bounding_box<A, B>(field: A, geo_box: B) -> GeoBoundingBoxQuery
Source§impl Query
impl Query
pub fn build_geo_distance<A, B, C>( field: A, location: B, distance: C, ) -> GeoDistanceQuery
Source§impl Query
impl Query
pub fn build_geo_polygon<A, B>(field: A, points: B) -> GeoPolygonQuery
Source§impl Query
impl Query
pub fn build_geohash_cell<A, B>(field: A, location: B) -> GeohashCellQuery
Source§impl Query
impl Query
pub fn build_nested<A, B>(path: A, query: B) -> NestedQuery
Source§impl Query
impl Query
pub fn build_has_child<A, B>(doc_type: A, query: B) -> HasChildQuery
pub fn build_has_parent<A, B>(parent_type: A, query: B) -> HasParentQuery
Source§impl Query
impl Query
pub fn build_more_like_this() -> MoreLikeThisQuery
Source§impl Query
impl Query
pub fn build_terms<A>(field: A) -> TermsQuery
Source§impl Query
impl Query
pub fn build_range<A>(field: A) -> RangeQuery
Source§impl Query
impl Query
pub fn build_exists<A>(field: A) -> ExistsQuery
Source§impl Query
impl Query
pub fn build_prefix<A, B>(field: A, value: B) -> PrefixQuery
Source§impl Query
impl Query
pub fn build_wildcard<A, B>(field: A, value: B) -> WildcardQuery
Source§impl Query
impl Query
pub fn build_query<A, B>(field: A, value: B) -> RegexpQuery
Source§impl Query
impl Query
pub fn build_fuzzy<A, B>(field: A, value: B) -> FuzzyQuery
Source§impl Query
impl Query
pub fn build_match_all() -> MatchAllQuery
Trait Implementations§
Source§impl From<Query> for NoMatchQuery
impl From<Query> for NoMatchQuery
Source§fn from(from: Query) -> NoMatchQuery
fn from(from: Query) -> NoMatchQuery
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Query
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more