Skip to content

GeoShapeIndexer#prepareForIndex should be called for computing the doc value centroid #73856

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

Merged
merged 2 commits into from
Jun 8, 2021

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jun 7, 2021

The refactor in #71696 introduced a bug where computing the centroid of a shape is done on the original shape. Therefore for shapes that crosses the dateline, the computation of the centroid might be wrong.

This PR reverts that part of the logic again so the centroid is computed on the processed shape.

fixes #73836

@iverase iverase added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.0.0 v7.14.0 labels Jun 7, 2021
@iverase iverase requested a review from imotov June 7, 2021 15:39
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 7, 2021
@elasticmachine
Copy link
Collaborator

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

@iverase
Copy link
Contributor Author

iverase commented Jun 7, 2021

@elasticmachine update branch

@iverase iverase requested review from romseygeek and removed request for imotov June 7, 2021 16:39
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM

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 >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] GeoShapeScriptDocValuesIT testRandomShape failing
4 participants