Skip to content

[GEO] Refactor DeprecatedParameters in AbstractGeometryFieldMapper #44923

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

Conversation

nknize
Copy link
Contributor

@nknize nknize commented Jul 26, 2019

Refactors DeprecatedParameters (which are specific to legacy geo_shape prefix trees) out of AbstractGeometryFieldMapper.TypeParser#parse

Refactors DeprecatedParameters specific to legacy geo_shape out of
AbstractGeometryFieldMapper.TypeParser#parse.
@nknize nknize added :Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring v8.0.0 v7.4.0 labels Jul 26, 2019
@nknize nknize requested a review from imotov July 26, 2019 19:24
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo

@nknize
Copy link
Contributor Author

nknize commented Jul 26, 2019

@elasticmachine run elasticsearch-ci/packaging-sample

Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

LGTM. I think eventually we should move the TypeParser into GeoShapeFieldMapper even though it is used by both LegacyParser and this one. The ShapeFieldMapper is going to have a different parser anyway.

@nknize
Copy link
Contributor Author

nknize commented Jul 29, 2019

Actually with this commit the ShapeFieldMapper.TypeParser extends AbstractGeometryFieldMapper.TypeParser and only overloads parseXContentParameters (with false) and newBuilder (with new ShapeFieldMapper.Builder). Everything else is reused.

@nknize nknize merged commit 94b6846 into elastic:master Jul 29, 2019
jkakavas pushed a commit that referenced this pull request Jul 31, 2019
…44923)

Refactors DeprecatedParameters specific to legacy geo_shape out of
AbstractGeometryFieldMapper.TypeParser#parse.
nknize added a commit to nknize/elasticsearch that referenced this pull request Aug 8, 2019
…lastic#44923)

Refactors DeprecatedParameters specific to legacy geo_shape out of
AbstractGeometryFieldMapper.TypeParser#parse.
nknize added a commit that referenced this pull request Aug 14, 2019
…45363)

* Introduce Spatial Plugin (#44389)

Introduce a skeleton Spatial plugin that holds new licensed features coming to 
Geo/Spatial land!

* [GEO] Refactor DeprecatedParameters in AbstractGeometryFieldMapper (#44923)

Refactor DeprecatedParameters specific to legacy geo_shape out of
AbstractGeometryFieldMapper.TypeParser#parse.

* [SPATIAL] New ShapeFieldMapper for indexing cartesian geometries (#44980)

Add a new ShapeFieldMapper to the xpack spatial module for
indexing arbitrary cartesian geometries using a new field type called shape.
The indexing approach leverages lucene's new XYShape field type which is
backed by BKD in the same manner as LatLonShape but without the WGS84
latitude longitude restrictions. The new field mapper builds on and
extends the refactoring effort in AbstractGeometryFieldMapper and accepts
shapes in either GeoJSON or WKT format (both of which support non geospatial
geometries).

Tests are provided in the ShapeFieldMapperTest class in the same manner
as GeoShapeFieldMapperTests and LegacyGeoShapeFieldMapperTests.
Documentation for how to use the new field type and what parameters are
accepted is included. The QueryBuilder for searching indexed shapes is
provided in a separate commit.

* [SPATIAL] New ShapeQueryBuilder for querying indexed cartesian geometry (#45108)

Add a new ShapeQueryBuilder to the xpack spatial module for
querying arbitrary Cartesian geometries indexed using the new shape field
type.

The query builder extends AbstractGeometryQueryBuilder and leverages the
ShapeQueryProcessor added in the previous field mapper commit.

Tests are provided in ShapeQueryTests in the same manner as
GeoShapeQueryTests and docs are updated to explain how the query works.
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 >refactoring v7.4.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants