-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Conversation
Pinging @elastic/es-search (Team:Search) |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
@romseygeek do you mind having a look, I a pretty happy with the PR now. |
There was a problem hiding this 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 :)
Changes the way we fetch values from source in geo fields so we can format all data in one go.
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.