Skip to content
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

Add geo_shape mapper supporting doc-values in Spatial Plugin #55037

Merged
merged 13 commits into from
Apr 16, 2020

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Apr 9, 2020

After #53562, the geo_shape field mapper is registered within
a module. This opens the door for introducing a new geo_shape
field mapper into the Spatial Plugin that has doc-values support.

This is very much an extension of server's GeoShapeFieldMapper,
but with the addition of the doc values implementation.

this adds a doc_values param to the geo_shape mapping that defaults to true

@talevy talevy added WIP :Analytics/Geo Indexing, search aggregations of geo points and shapes labels Apr 9, 2020
@elasticmachine
Copy link
Collaborator

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

@talevy talevy force-pushed the x-pack-geo-shape branch 6 times, most recently from 1238374 to b79b2f8 Compare April 10, 2020 22:10
After elastic#53562, the `geo_shape` field mapper is registered within
a module. This opens the door for introducing a new `geo_shape`
field mapper into the Spatial Plugin that has doc-values support.

This is very much an extension of server's GeoShapeFieldMapper,
but with the addition of the doc values implementation.
@talevy talevy marked this pull request as ready for review April 13, 2020 19:35
@talevy talevy requested review from nknize and iverase April 13, 2020 19:35
@@ -274,7 +274,6 @@ public static boolean isFromDocValuesOnly(DataType dataType) {
|| dataType == SCALED_FLOAT // because of scaling_factor
|| dataType == CONSTANT_KEYWORD
|| dataType == GEO_POINT
|| dataType == GEO_SHAPE
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elastic/es-ql does anyone know why the geo_shape field was here as isFromDocValuesOnly when the field did not have doc values?

@talevy
Copy link
Contributor Author

talevy commented Apr 13, 2020

run elasticsearch-ci/packaging-sample-unix-docker

@talevy
Copy link
Contributor Author

talevy commented Apr 13, 2020

run elasticsearch-ci/2

Copy link
Contributor

@iverase iverase 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 we need to reorder the class under mapper package but we can do that in a follow up PR.

@talevy talevy merged commit b78dfb0 into elastic:master Apr 16, 2020
@talevy talevy deleted the x-pack-geo-shape branch April 16, 2020 16:18
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ui (:ES-UI)

talevy added a commit that referenced this pull request Apr 22, 2020
…#55500)

After #53562, the `geo_shape` field mapper is registered within
a module. This opens the door for introducing a new `geo_shape`
field mapper into the Spatial Plugin that has doc-values support.

This is very much an extension of server's GeoShapeFieldMapper,
but with the addition of the doc values implementation.
talevy added a commit to talevy/elasticsearch that referenced this pull request Apr 22, 2020
After backporting the geo_shape with doc-values field to 7.x(7.8),
this the version boundary for this feature can now be pulled from
8.0 to 7.8.

relates elastic#55037.
talevy added a commit that referenced this pull request Apr 22, 2020
After backporting the geo_shape with doc-values field to 7.x(7.8),
this the version boundary for this feature can now be pulled from
8.0 to 7.8.

relates #55037.
@cjcenizal cjcenizal added the Team:Deployment Management Meta label for Management Experience - Deployment Management team label Jun 9, 2020
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 >enhancement Team:Deployment Management Meta label for Management Experience - Deployment Management team v7.8.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants