-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BKD-based geo shapes #32039
Comments
Pinging @elastic/es-search-aggs |
We were discussing geo-shapes with Nick earlier today and I realized that we had been living on different assumptions regarding this item. There are two ways that it could be achieved:
Both would work, I suspect 1 would be a bit more space-intensive but simpler. Query speed would likely depend on the ratio of indexed shapes that are polygons?
@nknize suggested that we could add support for this work in a new Another part of that discussion was whether @nknize What do you think? |
Is there an ETA for CONTAINS support? The ticket gives ES 7.0 and we're already at 7.2. It's mandatory for use-case so I'm stuck using the slow old indexing. |
It is being worked on but there is no ETA at this point. |
With the introduction of BKD-based geo shape indexing in #32039, the prefix tree indexing method has been deprecated. From 8.0.0, it will not be allowed to create new mappings using deprecated parameters.
+1 to close |
Explanation
LatLonShape
indexes shapes by decomposing them into a triangular mesh and indexing each triangle as a 7 dimension point in the BKD Tree (POINTS codec). Below is a graphic demonstrating this decomposition on several US state's political boundaries.This provides a spatial accuracy of ~1e-6 decimal degrees. Whereas accuracy for the legacy inverted index approach (Prefix Trees) depended on the
tree_levels
,precision
, anddistance_err_pct
parameters.TODO
geo_shape
buffer query supportgeo_shape
indexing approach #35320 Add point shape queriesgeo_shape
indexing approach #35320 AddGEOMETRYCOLLECTION
queriesgeo_distance
queries (target 7.x release)distance
queries onshape
field typesdoc_value
and aggregation support forgeo_shape
(target 7.x release)LatLonShape.Triangle
encoding to use 4 BYTES per dimension instead of 8 (target 7.0.0 release)LatLonShape.Triangle
encoding to identify boundary edges (needed for CONTAINS relation) (target 7.0.0 release)geo_shape
indexing approach #35320 Add an option to indexgeo_shape
fields with BKD trees in 6.xgeo_shape
query parity forgeo_point
field typesThe text was updated successfully, but these errors were encountered: