Struct elasticsearch_dsl::search::queries::geo::GeoBoundingBoxQuery
source · pub struct GeoBoundingBoxQuery { /* private fields */ }Implementations§
source§impl GeoBoundingBoxQuery
impl GeoBoundingBoxQuery
pub fn serialize<__S>(
__self: &GeoBoundingBoxQuery,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
source§impl GeoBoundingBoxQuery
impl GeoBoundingBoxQuery
sourcepub fn validation_method(self, validation_method: ValidationMethod) -> Self
pub fn validation_method(self, validation_method: ValidationMethod) -> Self
Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude, set to
COERCE to also try to infer correct latitude or longitude. (default is STRICT).
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 GeoBoundingBoxQuery
impl Clone for GeoBoundingBoxQuery
source§fn clone(&self) -> GeoBoundingBoxQuery
fn clone(&self) -> GeoBoundingBoxQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GeoBoundingBoxQuery
impl Debug for GeoBoundingBoxQuery
source§impl From<GeoBoundingBoxQuery> for Option<Query>
impl From<GeoBoundingBoxQuery> for Option<Query>
source§fn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Converts to this type from the input type.
source§impl From<GeoBoundingBoxQuery> for Query
impl From<GeoBoundingBoxQuery> for Query
source§fn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Converts to this type from the input type.
source§impl IntoIterator for GeoBoundingBoxQuery
impl IntoIterator for GeoBoundingBoxQuery
§type Item = GeoBoundingBoxQuery
type Item = GeoBoundingBoxQuery
The type of the elements being iterated over.
§type IntoIter = IntoIter<<GeoBoundingBoxQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<GeoBoundingBoxQuery as IntoIterator>::Item>
Which kind of iterator are we turning this into?
source§impl PartialEq<GeoBoundingBoxQuery> for Query
impl PartialEq<GeoBoundingBoxQuery> for Query
source§impl PartialEq<Query> for GeoBoundingBoxQuery
impl PartialEq<Query> for GeoBoundingBoxQuery
source§impl PartialEq for GeoBoundingBoxQuery
impl PartialEq for GeoBoundingBoxQuery
source§impl Serialize for GeoBoundingBoxQuery
impl Serialize for GeoBoundingBoxQuery
impl StructuralPartialEq for GeoBoundingBoxQuery
Auto Trait Implementations§
impl Freeze for GeoBoundingBoxQuery
impl RefUnwindSafe for GeoBoundingBoxQuery
impl Send for GeoBoundingBoxQuery
impl Sync for GeoBoundingBoxQuery
impl Unpin for GeoBoundingBoxQuery
impl UnwindSafe for GeoBoundingBoxQuery
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> 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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)