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

Geometry formatters should be applied to the full array #75177

Merged
merged 7 commits into from
Jul 14, 2021

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jul 9, 2021

Currently when formatting a geometry object, we applyy formatting to each element of an array individually. For many cases that is enough but we oversee that some formatters (eg. vector tiles) needs to be applied to the whole array at once. At the end of the day an array of geometries is equivalent to a Geometry collection.

Therefore this PR changes the way we process formatters so they are apply to a List of Geometries.

@iverase iverase added :Analytics/Geo Indexing, search aggregations of geo points and shapes :Search/Search Search-related issues that do not fall into other categories >refactoring v8.0.0 v7.15.0 labels Jul 9, 2021
@iverase iverase requested a review from romseygeek July 9, 2021 10:22
@elasticmachine elasticmachine added Team:Search Meta label for search team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Jul 9, 2021
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

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

@iverase
Copy link
Contributor Author

iverase commented Jul 14, 2021

@romseygeek do you mind having a look, I a pretty happy with the PR now.

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. We already have tests that check that an individual badly-formatted geometry doesn't prevent other geometries from the same field being indexed if ignore_malformed is set to true I think? So if CI is happy then so am I :)

@iverase iverase merged commit dcd3877 into elastic:master Jul 14, 2021
@iverase iverase deleted the GeoFormattersList branch July 14, 2021 14:35
iverase added a commit that referenced this pull request Jul 14, 2021
)

Changes the way we fetch values from source in geo fields so we can format all data in one go.
masseyke pushed a commit to masseyke/elasticsearch that referenced this pull request Jul 16, 2021
Changes the way we fetch values from source in geo fields so we can format all data in one go.
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 :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.15.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants