-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Geo shape query vs geo point #52382
Geo shape query vs geo point #52382
Conversation
in Class org.elasticsearch.search.geo.GeoPointShapeQueryTests
…tion raised, see org.elasticsearch.index.query.QueryShardContext.toQuery
in GeoPointShapeQueryTests
…ShapeQueryTests.java
GeoShapeQueryTests refactored adding superclass and sibling to accomodate new test coverage as part of adaptation of geo_shape query to work on geo_point fields
server/src/main/java/org/elasticsearch/index/mapper/AbstractSearchableGeometryFieldType.java
Outdated
Show resolved
Hide resolved
…GeometryFieldType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! A couple thoughts:
- We need to add testing for
GeometryCollection
; but this can come in a follow up PR ShapeQueryBuilder.validateContentTypes
returns a newList
instance every time it's called. We need to be careful there. We already called it twice inbuildShapeQuery
so that needs to be changed in this PR. We should probably make a static variable in the derived builders that call this once so we don't shoot ourselves in the foot in the future.
server/src/test/java/org/elasticsearch/index/query/GeoShapeQueryBuilderGeoPointTests.java
Show resolved
Hide resolved
server/src/test/java/org/elasticsearch/index/query/GeoShapeQueryBuilderGeoShapeTests.java
Show resolved
Hide resolved
server/src/test/java/org/elasticsearch/search/geo/GeoPointShapeQueryTests.java
Show resolved
Hide resolved
...gin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/query/ShapeQueryBuilder.java
Outdated
Show resolved
Hide resolved
...gin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/query/ShapeQueryBuilder.java
Show resolved
Hide resolved
…atial/index/query/ShapeQueryBuilder.java Co-Authored-By: Nick Knize <[email protected]>
@elasticmachine run elasticsearch-ci/2 |
@elasticmachine run elasticsearch-ci/2 |
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable geo_shape query to work on geo_point fields for shapes: circle, polygon, multipolygon, rectangle see: elastic#48928 Co-Authored-By: @iverase
Enable geo_shape query to work on geo_point fields for shapes: circle, polygon, multipolygon, rectangle
see: #48928
many thanks to @iverase for fa64b52