Struct elasticsearch_dsl::search::queries::geo::GeoBoundingBoxQuery
source · [−]pub struct GeoBoundingBoxQuery { /* private fields */ }
Implementations
sourceimpl GeoBoundingBoxQuery
impl GeoBoundingBoxQuery
sourcepub fn validation_method(
self,
validation_method: impl Into<ValidationMethod>
) -> Self
pub fn validation_method(
self,
validation_method: impl Into<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<B>(self, boost: B) -> Self where
B: TryInto<Boost>,
pub fn boost<B>(self, boost: B) -> Self where
B: TryInto<Boost>,
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
sourceimpl Clone for GeoBoundingBoxQuery
impl Clone for GeoBoundingBoxQuery
sourcefn clone(&self) -> GeoBoundingBoxQuery
fn clone(&self) -> GeoBoundingBoxQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GeoBoundingBoxQuery
impl Debug for GeoBoundingBoxQuery
sourceimpl From<GeoBoundingBoxQuery> for Query
impl From<GeoBoundingBoxQuery> for Query
sourcefn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Converts to this type from the input type.
sourceimpl From<GeoBoundingBoxQuery> for Option<Query>
impl From<GeoBoundingBoxQuery> for Option<Query>
sourcefn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Converts to this type from the input type.
sourceimpl From<GeoBoundingBoxQuery> for Queries
impl From<GeoBoundingBoxQuery> for Queries
sourcefn from(q: GeoBoundingBoxQuery) -> Self
fn from(q: GeoBoundingBoxQuery) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<GeoBoundingBoxQuery> for GeoBoundingBoxQuery
impl PartialEq<GeoBoundingBoxQuery> for GeoBoundingBoxQuery
sourcefn eq(&self, other: &GeoBoundingBoxQuery) -> bool
fn eq(&self, other: &GeoBoundingBoxQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GeoBoundingBoxQuery) -> bool
fn ne(&self, other: &GeoBoundingBoxQuery) -> bool
This method tests for !=
.
sourceimpl PartialEq<GeoBoundingBoxQuery> for Query
impl PartialEq<GeoBoundingBoxQuery> for Query
sourceimpl PartialEq<Query> for GeoBoundingBoxQuery
impl PartialEq<Query> for GeoBoundingBoxQuery
sourceimpl Serialize for GeoBoundingBoxQuery
impl Serialize for GeoBoundingBoxQuery
impl StructuralPartialEq for GeoBoundingBoxQuery
Auto Trait Implementations
impl RefUnwindSafe for GeoBoundingBoxQuery
impl Send for GeoBoundingBoxQuery
impl Sync for GeoBoundingBoxQuery
impl Unpin for GeoBoundingBoxQuery
impl UnwindSafe for GeoBoundingBoxQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more