[][src]Enum rs_es::query::Query

pub enum Query {
    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>),
}

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>)
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>)

Methods

impl Query[src]

pub fn build_constant_score<A>(query: A) -> ConstantScoreQuery where
    A: Into<Query>, 
[src]

impl Query[src]

impl Query[src]

pub fn build_dis_max<A>(queries: A) -> DisMaxQuery where
    A: Into<Vec<Query>>, 
[src]

impl Query[src]

impl Query[src]

impl Query[src]

pub fn build_indices<A, B>(indices: A, query: B) -> IndicesQuery where
    A: Into<OneOrMany<String>>,
    B: Into<Query>, 
[src]

impl Query[src]

pub fn build_match<A, B>(field: A, query: B) -> MatchQuery where
    A: Into<String>,
    B: Into<JsonVal>, 
[src]

impl Query[src]

pub fn build_multi_match<A, B>(fields: A, query: B) -> MultiMatchQuery where
    A: Into<Vec<String>>,
    B: Into<JsonVal>, 
[src]

impl Query[src]

pub fn build_common<A>(query: A) -> CommonQuery where
    A: Into<JsonVal>, 
[src]

impl Query[src]

impl Query[src]

impl Query[src]

pub fn build_geo_shape<A>(field: A) -> GeoShapeQuery where
    A: Into<String>, 
[src]

impl Query[src]

pub fn build_geo_bounding_box<A, B>(field: A, geo_box: B) -> GeoBoundingBoxQuery where
    A: Into<String>,
    B: Into<GeoBox>, 
[src]

impl Query[src]

pub fn build_geo_distance<A, B, C>(
    field: A,
    location: B,
    distance: C
) -> GeoDistanceQuery where
    A: Into<String>,
    B: Into<Location>,
    C: Into<Distance>, 
[src]

impl Query[src]

pub fn build_geo_polygon<A, B>(field: A, points: B) -> GeoPolygonQuery where
    A: Into<String>,
    B: Into<Vec<Location>>, 
[src]

impl Query[src]

pub fn build_geohash_cell<A, B>(field: A, location: B) -> GeohashCellQuery where
    A: Into<String>,
    B: Into<Location>, 
[src]

impl Query[src]

pub fn build_nested<A, B>(path: A, query: B) -> NestedQuery where
    A: Into<String>,
    B: Into<Query>, 
[src]

impl Query[src]

pub fn build_has_child<A, B>(doc_type: A, query: B) -> HasChildQuery where
    A: Into<String>,
    B: Into<Query>, 
[src]

pub fn build_has_parent<A, B>(parent_type: A, query: B) -> HasParentQuery where
    A: Into<String>,
    B: Into<Query>, 
[src]

impl Query[src]

impl Query[src]

pub fn build_term<A, B>(field: A, value: B) -> TermQuery where
    A: Into<String>,
    B: Into<JsonVal>, 
[src]

impl Query[src]

pub fn build_terms<A>(field: A) -> TermsQuery where
    A: Into<String>, 
[src]

impl Query[src]

pub fn build_range<A>(field: A) -> RangeQuery where
    A: Into<String>, 
[src]

impl Query[src]

pub fn build_exists<A>(field: A) -> ExistsQuery where
    A: Into<String>, 
[src]

impl Query[src]

pub fn build_prefix<A, B>(field: A, value: B) -> PrefixQuery where
    A: Into<String>,
    B: Into<String>, 
[src]

impl Query[src]

pub fn build_wildcard<A, B>(field: A, value: B) -> WildcardQuery where
    A: Into<String>,
    B: Into<String>, 
[src]

impl Query[src]

pub fn build_query<A, B>(field: A, value: B) -> RegexpQuery where
    A: Into<String>,
    B: Into<String>, 
[src]

impl Query[src]

pub fn build_fuzzy<A, B>(field: A, value: B) -> FuzzyQuery where
    A: Into<String>,
    B: Into<String>, 
[src]

impl Query[src]

pub fn build_type<A>(value: A) -> TypeQuery where
    A: Into<String>, 
[src]

impl Query[src]

pub fn build_ids<A>(values: A) -> IdsQuery where
    A: Into<Vec<JsonVal>>, 
[src]

impl Query[src]

Trait Implementations

impl Debug for Query[src]

impl Default for Query[src]

impl From<Query> for NoMatchQuery[src]

impl Serialize for Query[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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