Open chaserelock opened 4 years ago
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html src/QueryDSL/Query/Geo/GeoDistance
Rather than just requiring a getGeoPointFC(opts) e.g. { "lat": 127, "lon": 4 }, GeoDistance instead expects top_left and bottom_right which should only be used in the GeoBoundingBox query.
getGeoPointFC(opts)
{ "lat": 127, "lon": 4 }
top_left
bottom_right
const subName = getTypeName('QueryGeoDistanceSettings', opts); const fields = getGeoPointAsFieldConfigMap( opts, opts.getOrCreateITC(subName, () => ({ name: subName, fields: { top_left: getGeoPointFC(opts), bottom_right: getGeoPointFC(opts), }, })) );
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html src/QueryDSL/Query/Geo/GeoDistance
Rather than just requiring a
getGeoPointFC(opts)
e.g.{ "lat": 127, "lon": 4 }
, GeoDistance instead expectstop_left
andbottom_right
which should only be used in the GeoBoundingBox query.