Struct elasticsearch_dsl::search::queries::geo::GeoShapeLookupQuery    
source · pub struct GeoShapeLookupQuery { /* private fields */ }Expand description
Filter documents indexed using the geo_shape or geo_point type.
Requires the
geo_shape mapping
or the
geo_point mapping.
The geo_shape query uses the same grid square representation as the
geo_shape mapping to find documents that have a shape that intersects
with the query shape. It will also use the same Prefix Tree configuration
as defined for the field mapping.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html
Implementations§
source§impl GeoShapeLookupQuery
 
impl GeoShapeLookupQuery
pub fn serialize<__S>(
    __self: &GeoShapeLookupQuery,
    __serializer: __S,
) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,
source§impl GeoShapeLookupQuery
 
impl GeoShapeLookupQuery
sourcepub fn index<S>(self, index: S) -> Selfwhere
    S: ToString,
 
pub fn index<S>(self, index: S) -> Selfwhere
    S: ToString,
Name of the index where the pre-indexed shape is. Defaults to shapes
sourcepub fn path<S>(self, path: S) -> Selfwhere
    S: ToString,
 
pub fn path<S>(self, path: S) -> Selfwhere
    S: ToString,
The field specified as path containing the pre-indexed shape. Defaults to shape
sourcepub fn routing<S>(self, routing: S) -> Selfwhere
    S: ToString,
 
pub fn routing<S>(self, routing: S) -> Selfwhere
    S: ToString,
The routing of the shape document
sourcepub fn relation(self, relation: SpatialRelation) -> Self
 
pub fn relation(self, relation: SpatialRelation) -> Self
The geo_shape strategy mapping parameter determines which spatial relation operators may be used at search time.
sourcepub fn ignore_unmapped(self, ignore_unmapped: bool) -> Self
 
pub fn ignore_unmapped(self, ignore_unmapped: bool) -> Self
When set to true the ignore_unmapped option will ignore an unmapped
field and will not match any documents for this query. This can be
useful when querying multiple indexes which might have different
mappings. When set to false (the default value) the query will throw
an exception if the field is not mapped.
sourcepub fn boost<T>(self, boost: T) -> Selfwhere
    T: AsPrimitive<f32>,
 
pub fn boost<T>(self, boost: T) -> Selfwhere
    T: AsPrimitive<f32>,
Floating point number used to decrease or increase the
relevance scores
of a query. Defaults to 1.0.
You can use the boost parameter to adjust relevance scores for searches containing two or more queries.
Boost values are relative to the default value of 1.0.
A boost value between 0 and 1.0 decreases the relevance score.
A value greater than 1.0 increases the relevance score.
Trait Implementations§
source§impl Clone for GeoShapeLookupQuery
 
impl Clone for GeoShapeLookupQuery
source§fn clone(&self) -> GeoShapeLookupQuery
 
fn clone(&self) -> GeoShapeLookupQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GeoShapeLookupQuery
 
impl Debug for GeoShapeLookupQuery
source§impl From<GeoShapeLookupQuery> for Option<Query>
 
impl From<GeoShapeLookupQuery> for Option<Query>
source§fn from(q: GeoShapeLookupQuery) -> Self
 
fn from(q: GeoShapeLookupQuery) -> 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 IntoIterator for GeoShapeLookupQuery
 
impl IntoIterator for GeoShapeLookupQuery
§type Item = GeoShapeLookupQuery
 
type Item = GeoShapeLookupQuery
§type IntoIter = IntoIter<<GeoShapeLookupQuery as IntoIterator>::Item>
 
type IntoIter = IntoIter<<GeoShapeLookupQuery as IntoIterator>::Item>
source§impl PartialEq<GeoShapeLookupQuery> for Query
 
impl PartialEq<GeoShapeLookupQuery> for Query
source§impl PartialEq<Query> for GeoShapeLookupQuery
 
impl PartialEq<Query> for GeoShapeLookupQuery
source§impl PartialEq for GeoShapeLookupQuery
 
impl PartialEq for GeoShapeLookupQuery
source§impl Serialize for GeoShapeLookupQuery
 
impl Serialize for GeoShapeLookupQuery
impl StructuralPartialEq for GeoShapeLookupQuery
Auto Trait Implementations§
impl Freeze for GeoShapeLookupQuery
impl RefUnwindSafe for GeoShapeLookupQuery
impl Send for GeoShapeLookupQuery
impl Sync for GeoShapeLookupQuery
impl Unpin for GeoShapeLookupQuery
impl UnwindSafe for GeoShapeLookupQuery
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)