-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add support for GeoShape to the scripting fields API #81617
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
Conversation
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
|
Hi @jdconrad, I've created a changelog YAML for you. |
| private static final List<Whitelist> WHITELISTS = List.of( | ||
| WhitelistLoader.loadFromResourceFiles( | ||
| SpatialPainlessExtension.class, | ||
| "org.elasticsearch.xpack.spatial.index.fielddata.txt", |
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.
Why split these across three different files?
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.
I find it easier to find the classes when they're separated out by package. I realize there's not a huge amount allow-listed here, yet, but I think we want to expand this quite a bit.
|
|
||
| public static class GeoShapeDocValuesField | ||
| implements | ||
| DocValuesField<GeoShapeValues.GeoShapeValue>, |
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.
Is this formatting intended?
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.
Guess so since this is what spotless produced.
stu-elastic
left a comment
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.
Nice infrastructure.
|
@stu-elastic Thanks for the review! Will commit as soon as CI passes. |
This change adds infrastructure for GeoShape making it accessible via the new scripting fields API. This does not add any methods outside of get at this point in time since it needs additional thought/discussion on what makes sense similar to GeoPoints. Note that because GeoShape does not support XContent this is just a skeleton that currently supports getScriptDocValues.
This change adds infrastructure for GeoShape making it accessible via the new scripting fields API. This does not add any methods outside of get at this point in time since it needs additional thought/discussion on what makes sense similar to GeoPoints. Note that because GeoShape does not support XContent this is just a skeleton that currently supports getScriptDocValues.
This change adds infrastructure for GeoShape making it accessible via the new scripting fields API. This does not add any methods outside of get at this point in time since it needs additional thought/discussion on what makes sense similar to GeoPoints. Note that because GeoShape does not support XContent this is just a skeleton that currently supports getScriptDocValues.