Skip to content

Conversation

@nknize
Copy link
Contributor

@nknize nknize commented Apr 23, 2020

This commit refactors all spatial Field Mappers to a common
AbstractGeometryFieldMapper that implements shared parameter functionality
(e.g., ignore_malformed, ignore_z_value) and provides a common framework for
overriding type parsing, and building in xpack. Common shape functionality is
implemented in a new AbstractShapeGeometryFieldMapper that is reused and
overridden in GeoShapeFieldMapper, GeoShapeFieldMapperWithDocValues,
LegacyGeoShapeFieldMapper, and ShapeFieldMapper. This abstraction provides a
reusable foundation for adding new xpack features; such as coordinate reference
system support.

@nknize nknize added >non-issue :Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring backport v7.8.0 labels Apr 23, 2020
@nknize nknize requested a review from talevy April 23, 2020 21:20
@elasticmachine
Copy link
Collaborator

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

nknize added 2 commits April 24, 2020 11:44
This commit refactors all spatial Field Mappers to a common
AbstractGeometryFieldMapper that implements shared parameter functionality
(e.g., ignore_malformed, ignore_z_value) and provides a common framework for
overriding type parsing, and building in xpack. Common shape functionality is
implemented in a new AbstractShapeGeometryFieldMapper that is reused and
overridden in GeoShapeFieldMapper, GeoShapeFieldMapperWithDocValues,
LegacyGeoShapeFieldMapper, and ShapeFieldMapper. This abstraction provides a
reusable foundation for adding new xpack features; such as coordinate reference
system support.
doing so the doXContentBody for geo_shape types were changed to include the
common field mapper parameters (e.g., index, store, term_vector). This
introduced a bug that included doc_values twice. This commit removes the
explicit inclusion of the doc_values parameter from the
GeoShapeWithDocValuesFieldMapper.doXContentBody method.
@nknize nknize force-pushed the refactor/SpatialFieldMappers_7x branch from 351db83 to c9b3815 Compare April 24, 2020 17:10
@nknize nknize merged commit b0e8a8a into elastic:7.x Apr 24, 2020
@nknize nknize deleted the refactor/SpatialFieldMappers_7x branch April 24, 2020 20:08
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 backport >non-issue >refactoring v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants