Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Oct 27, 2020

Following the development in #48928, GeoShape queries in more powerful that GeoPolygon queries and it makes little sense having both. This commit deprecates GeoPolygon queries.

@iverase iverase added :Analytics/Geo Indexing, search aggregations of geo points and shapes >deprecation v8.0.0 labels Oct 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Geo)

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 27, 2020
@iverase iverase added the :Search/Search Search-related issues that do not fall into other categories label Nov 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Nov 5, 2020
@iverase iverase added the v7.11.0 label Nov 5, 2020
}
}
--------------------------------------------------
// TEST[warning:Deprecated field [geo_polygon] used, replaced by [[geo_shape] query where polygons are defined in geojson or wkt]]
Copy link
Contributor

@mayya-sharipova mayya-sharipova Jan 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iverase Thanks Ignacio.
I would like to clarify something.

Is geo_polygon a different query from geo_shape?
Or is it the same query and it was just renamed from geo_polygon to geo_shape?

This warning looks like we just renamed the query. I thought we use this kind of warning when we rename a field. No?

Copy link
Contributor Author

@iverase iverase Jan 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a different query that has the same functionality (and much more) than the geo_polygon query. I try to follow the same strategy as here: #42619.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iverase Thanks for the clarification, I was not aware that we use withAllDeprecated also with queries!

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iverase Thanks, this LGTM.
One clarification, is geo_polygon query will be removed in v 8.x? Or we will still keep it in 8.x for Rest API version compatibility in case 7.x clients want to access it?

@iverase
Copy link
Contributor Author

iverase commented Feb 1, 2021

The plan is to keep it in 8.x and remove it in 9.0.

@iverase iverase merged commit f58d785 into elastic:master Feb 9, 2021
@iverase iverase deleted the GeoPolygonQueryDeprecation branch February 9, 2021 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes >deprecation :Search/Search Search-related issues that do not fall into other categories Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Search Meta label for search team v7.12.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants