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

Expose points_only option through geo_shape field mapper #12856

nknize opened this Issue Aug 13, 2015 · 0 comments


None yet
1 participant

nknize commented Aug 13, 2015

SpatialPrefixTreeStrategy includes an option for optimizing geo_shape types when the user expects to index points only. With a slight decrease in performance and increase in index size, when compared its geo_point, counterpart this option will treat a geo_shape structure similar to a geo_point with the added benefit of being compatible with other geo_shape types (polygons, multipolygons, etc.).

This provides an initial solution to a question often asked in training (and most recently raised by @polyfractal), "will geo_points be compatible with geo_shapes". For those use cases this enhancement will allow users to separate geo_point fields from geo_shape fields, achieve a performance boost for point only queries, yet still be able to use geo_shape queries on both geo_point and geo_shape fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment