-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Discussion] Can this extension load as a object in Opensearch Plugins #151
Comments
Are you just trying to call Python code? What's the complete use-case? |
I am attempting to register Python SDK extensions within a Java plugin to invoke them. For instance, if I have 10 extensions, can the plugin recognize that there are 10 extensions, along with their names and descriptions, and subsequently invoke them? |
Users install extensions today by making a REST call to To invoke the extension it depends what the extension currently exposes for services within OpenSearch. In https://code.dblock.org/2023/09/29/writing-opensearch-plugins-and-extensions.html I have an example that adds a REST interface. You can make transport calls, too, like this. |
The current model is that extensions register themselves with OpenSearch itself. Each extension is identified by a unique ID which is used as part of its rest path. You can use a REST client to directly call the extension's API with a direct call to the node the extension connected to. There's also a means to directly trigger transport actions, but it's slightly more complex. Note that extensions are experimental and currently implemented only connected to a single node. |
After register a python extension, can we use loadExtensions interface or other interface to load extension as a object in a plugin?
Like this code. So that we can use any extension developed by python in our plugin.
The text was updated successfully, but these errors were encountered: