Struct elasticsearch_dsl::search::queries::geo::GeoDistanceQuery [−][src]
pub struct GeoDistanceQuery { /* fields omitted */ }
Expand description
Matches geo_point and geo_shape values within a given distance of a geopoint.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html
Implementations
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
).
How to compute the distance. Can either be Arc
(default),
or Plane
(faster, but inaccurate on long distances and close to the poles).
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.
You can use named queries to track which queries matched
returned documents. If named queries are used, the response
includes a matched_queries
property for each hit.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GeoDistanceQuery
impl Send for GeoDistanceQuery
impl Sync for GeoDistanceQuery
impl Unpin for GeoDistanceQuery
impl UnwindSafe for GeoDistanceQuery
Blanket Implementations
Mutably borrows from an owned value. Read more