-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Issue 54628 #58151
Issue 54628 #58151
Conversation
@@ -312,10 +327,15 @@ public Query doToQuery(QueryShardContext context) { | |||
throw new QueryShardException(context, "failed to find geo_point field [" + fieldName + "]"); | |||
} | |||
} | |||
if (!(fieldType instanceof GeoPointFieldType)) { | |||
throw new QueryShardException(context, "field [" + fieldName + "] is not a geo_point field"); | |||
// if (!(fieldType instanceof GeoPointFieldType)) { |
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.
Note that above refers just to geo_point ("failed to find geo_point field ["). That might need to be updated.
Validation looks good. Next thing is to change the way we are building the queries by using |
Hi @iverase, I have updated GeoBoundingBox and GeoDistance to inherit and implement AbstractGeometryQueryBuilder as given in GeoShapeQueryBuilder. I have added the following functions from GeoShapeQuery:
Let me know if I have progressed in the right direction. Also if new issues should be created to update docs with new changes. |
Thanks @Shubhangi2901! I had a look into your changes and I don't think this queries should implement
Note that we need to update the test so all the possibilities are tested. |
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
I am going to close this PR in favour of #64224. |
PR for Enable geo_distance and geo_bounding_box queries on geo_shape field type