Enum rs_es::query::Query
[−]
[src]
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>)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>)Methods
impl Query[src]
fn build_constant_score<A>(query: A) -> ConstantScoreQuery where A: Into<Query>
impl Query[src]
fn build_bool() -> BoolQuery
impl Query[src]
fn build_dis_max<A>(queries: A) -> DisMaxQuery where A: Into<Vec<Query>>
impl Query[src]
impl Query[src]
fn build_boosting() -> BoostingQuery
impl Query[src]
fn build_indices<A, B>(indices: A, query: B) -> IndicesQuery where A: Into<OneOrMany<String>>, B: Into<Query>
impl Query[src]
fn build_match<A, B>(field: A, query: B) -> MatchQuery where A: Into<String>, B: Into<JsonVal>
impl Query[src]
fn build_multi_match<A, B>(fields: A, query: B) -> MultiMatchQuery where A: Into<Vec<String>>, B: Into<JsonVal>
impl Query[src]
fn build_common<A>(query: A) -> CommonQuery where A: Into<JsonVal>
impl Query[src]
fn build_query_string<A: Into<String>>(query: A) -> QueryStringQuery
impl Query[src]
fn build_simple_query_string<A: Into<String>>(query: A) -> SimpleQueryStringQuery
impl Query[src]
fn build_geo_shape<A>(field: A) -> GeoShapeQuery where A: Into<String>
impl Query[src]
fn build_geo_bounding_box<A, B>(field: A, geo_box: B) -> GeoBoundingBoxQuery where A: Into<String>, B: Into<GeoBox>
impl Query[src]
fn build_geo_distance<A, B, C>(field: A, location: B, distance: C) -> GeoDistanceQuery where A: Into<String>, B: Into<Location>, C: Into<Distance>
impl Query[src]
fn build_geo_polygon<A, B>(field: A, points: B) -> GeoPolygonQuery where A: Into<String>, B: Into<Vec<Location>>
impl Query[src]
fn build_geohash_cell<A, B>(field: A, location: B) -> GeohashCellQuery where A: Into<String>, B: Into<Location>
impl Query[src]
fn build_nested<A, B>(path: A, query: B) -> NestedQuery where A: Into<String>, B: Into<Query>
impl Query[src]
fn build_has_child<A, B>(doc_type: A, query: B) -> HasChildQuery where A: Into<String>, B: Into<Query>
fn build_has_parent<A, B>(parent_type: A, query: B) -> HasParentQuery where A: Into<String>, B: Into<Query>
impl Query[src]
impl Query[src]
impl Query[src]
fn build_terms<A>(field: A) -> TermsQuery where A: Into<String>
impl Query[src]
fn build_range<A>(field: A) -> RangeQuery where A: Into<String>
impl Query[src]
fn build_exists<A>(field: A) -> ExistsQuery where A: Into<String>
impl Query[src]
fn build_prefix<A, B>(field: A, value: B) -> PrefixQuery where A: Into<String>, B: Into<String>
impl Query[src]
fn build_wildcard<A, B>(field: A, value: B) -> WildcardQuery where A: Into<String>, B: Into<String>
impl Query[src]
fn build_query<A, B>(field: A, value: B) -> RegexpQuery where A: Into<String>, B: Into<String>
impl Query[src]
fn build_fuzzy<A, B>(field: A, value: B) -> FuzzyQuery where A: Into<String>, B: Into<String>
impl Query[src]
fn build_type<A>(value: A) -> TypeQuery where A: Into<String>
impl Query[src]
impl Query[src]
fn build_match_all() -> MatchAllQuery
Trait Implementations
impl Debug for Query[src]
impl Default for Query[src]
impl Serialize for Query[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.