-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[ML] domainSplit painless extension not available in runtime fields #71946
Comments
Pinging @elastic/ml-core (Team:ML) |
I had a look at this, and it looks like the domainSplit function is registered by the MachineLearningPainlessExtension and enhances the existing script_field context. Runtime fields have different contexts, one per data type. It is possible to enhance the existing runtime fields contexts as well in the same way. I wonder if this is needed, and if so if the function should be built-in. |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
A Registered domain ingest processor has been added to the 7.13 release in #67611. The implementation is different to the one in the ml plugin as it uses |
Thanks for the context: I have nothing against adding the function to the runtime fields contexts, but it looks like it may needed in other places too and this was raised before. I will leave it for the @elastic/es-core-infra team to discuss and decide. |
Let's move this into the core whitelists, as there is nothing core here, I'm going to remove the scripting label. Please reach out if you need help with the work. |
The ml plugin defines a custom painless extension function
domainSplit
which splits a URL into the highest registered domain and subdomains. The function can be called viascript_fields
in a search but if called inruntime_mappings
the script errors with:Unknown call [domainSplit] with [[org.elasticsearch.painless.node.EDot@156a1756]] arguments
To Reproduce
The text was updated successfully, but these errors were encountered: