-
Notifications
You must be signed in to change notification settings - Fork 58
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
[FEATURE] Give Extensions access to core NamedXContent #208
Labels
enhancement
New feature or request
Comments
dbwiddis
changed the title
[FEATURE]
[FEATURE] Give Extensions access to core NamedXContent
Oct 31, 2022
Extensions currently have an
|
This was referenced Nov 12, 2022
Actually, I was confused. NamedWriteables are different than NamedXWriteables (same as NamedXContent) and there's no overlap. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
Extensions need access to core NamedXContent, such as predefined range filters, cumulative sums, etc. These will need to be part of the content parser used with the ExtensionRestRequest:
These should be initialized in the BaseExtension or as part of CreateComponents.
What solution would you like?
Generate the registry on the SDK side. It's easy except for the Search Module, but we can instantiate one (such as in the above example) and figure out how to instantiate its standard methods already in core.
What alternatives have you considered?
Wasting a lot of bandwidth communicating the entire registry (and content) over transport.
Do you have any additional context?
See opensearch-project/anomaly-detection#692 for some cherry-picked NamedXContent that would not be needed if we just had the whole registry available in a BaseExtension
The text was updated successfully, but these errors were encountered: