[−][src]Enum rs_es::query::Query
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]
pub fn build_constant_score<A>(query: A) -> ConstantScoreQuery where
A: Into<Query>,
[src]
A: Into<Query>,
impl Query
[src]
pub fn build_bool() -> BoolQuery
[src]
impl Query
[src]
pub fn build_dis_max<A>(queries: A) -> DisMaxQuery where
A: Into<Vec<Query>>,
[src]
A: Into<Vec<Query>>,
impl Query
[src]
pub fn build_function_score() -> FunctionScoreQuery
[src]
impl Query
[src]
pub fn build_boosting() -> BoostingQuery
[src]
impl Query
[src]
pub fn build_indices<A, B>(indices: A, query: B) -> IndicesQuery where
A: Into<OneOrMany<String>>,
B: Into<Query>,
[src]
A: Into<OneOrMany<String>>,
B: Into<Query>,
impl Query
[src]
pub fn build_match<A, B>(field: A, query: B) -> MatchQuery where
A: Into<String>,
B: Into<JsonVal>,
[src]
A: Into<String>,
B: Into<JsonVal>,
impl Query
[src]
pub fn build_multi_match<A, B>(fields: A, query: B) -> MultiMatchQuery where
A: Into<Vec<String>>,
B: Into<JsonVal>,
[src]
A: Into<Vec<String>>,
B: Into<JsonVal>,
impl Query
[src]
pub fn build_common<A>(query: A) -> CommonQuery where
A: Into<JsonVal>,
[src]
A: Into<JsonVal>,
impl Query
[src]
pub fn build_query_string<A: Into<String>>(query: A) -> QueryStringQuery
[src]
impl Query
[src]
pub fn build_simple_query_string<A: Into<String>>(
query: A
) -> SimpleQueryStringQuery
[src]
query: A
) -> SimpleQueryStringQuery
impl Query
[src]
pub fn build_geo_shape<A>(field: A) -> GeoShapeQuery where
A: Into<String>,
[src]
A: Into<String>,
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]
A: Into<String>,
B: Into<GeoBox>,
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]
field: A,
location: B,
distance: C
) -> GeoDistanceQuery where
A: Into<String>,
B: Into<Location>,
C: Into<Distance>,
impl Query
[src]
pub fn build_geo_polygon<A, B>(field: A, points: B) -> GeoPolygonQuery where
A: Into<String>,
B: Into<Vec<Location>>,
[src]
A: Into<String>,
B: Into<Vec<Location>>,
impl Query
[src]
pub fn build_geohash_cell<A, B>(field: A, location: B) -> GeohashCellQuery where
A: Into<String>,
B: Into<Location>,
[src]
A: Into<String>,
B: Into<Location>,
impl Query
[src]
pub fn build_nested<A, B>(path: A, query: B) -> NestedQuery where
A: Into<String>,
B: Into<Query>,
[src]
A: Into<String>,
B: Into<Query>,
impl Query
[src]
pub fn build_has_child<A, B>(doc_type: A, query: B) -> HasChildQuery where
A: Into<String>,
B: Into<Query>,
[src]
A: Into<String>,
B: Into<Query>,
pub fn build_has_parent<A, B>(parent_type: A, query: B) -> HasParentQuery where
A: Into<String>,
B: Into<Query>,
[src]
A: Into<String>,
B: Into<Query>,
impl Query
[src]
pub fn build_more_like_this() -> MoreLikeThisQuery
[src]
impl Query
[src]
pub fn build_term<A, B>(field: A, value: B) -> TermQuery where
A: Into<String>,
B: Into<JsonVal>,
[src]
A: Into<String>,
B: Into<JsonVal>,
impl Query
[src]
pub fn build_terms<A>(field: A) -> TermsQuery where
A: Into<String>,
[src]
A: Into<String>,
impl Query
[src]
pub fn build_range<A>(field: A) -> RangeQuery where
A: Into<String>,
[src]
A: Into<String>,
impl Query
[src]
pub fn build_exists<A>(field: A) -> ExistsQuery where
A: Into<String>,
[src]
A: Into<String>,
impl Query
[src]
pub fn build_prefix<A, B>(field: A, value: B) -> PrefixQuery where
A: Into<String>,
B: Into<String>,
[src]
A: Into<String>,
B: Into<String>,
impl Query
[src]
pub fn build_wildcard<A, B>(field: A, value: B) -> WildcardQuery where
A: Into<String>,
B: Into<String>,
[src]
A: Into<String>,
B: Into<String>,
impl Query
[src]
pub fn build_query<A, B>(field: A, value: B) -> RegexpQuery where
A: Into<String>,
B: Into<String>,
[src]
A: Into<String>,
B: Into<String>,
impl Query
[src]
pub fn build_fuzzy<A, B>(field: A, value: B) -> FuzzyQuery where
A: Into<String>,
B: Into<String>,
[src]
A: Into<String>,
B: Into<String>,
impl Query
[src]
pub fn build_type<A>(value: A) -> TypeQuery where
A: Into<String>,
[src]
A: Into<String>,
impl Query
[src]
impl Query
[src]
pub fn build_match_all() -> MatchAllQuery
[src]
Trait Implementations
impl Default for Query
[src]
impl From<Query> for NoMatchQuery
[src]
fn from(from: Query) -> NoMatchQuery
[src]
impl Debug for Query
[src]
impl Serialize for Query
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,