-
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] Create SearchExtension interface #331
Comments
Hi @minalsha, Can you assign this issue to me ? Thanks and regards |
Hi @dbwiddis, I read through the design concepts and understood most of the things. I have couple of questions to clear.
Thanks and regards |
Hey @varuntumbe great questions.
|
Thanks @dbwiddis for the detailed answers. I will open a PR for this tonight. Thanks and regards |
"During startup, the getRestHandlers() method on that interface is queried for all plugins that implement ActcionPlugin and registers those handlers with the RestController" To handle the above scenario we need to implement #319 to so that open search will have list of extensions and their implemented interfaces correct ? Thanks and regards |
Not quite: in this particular case we have a dedicated transport action that does the registration on initialization, completely bypassing the ActionPlugin iteration. For most "initialization" events we don't need to know the implementation. However there may be future cases where we use the logic of #319, when OpenSearch needs to communicate something to all initialized extensions, in which case it will be useful to filter the list and avoid unnecessary network traffic. |
Got it, got it. Thanks @dbwiddis Thanks and regards |
Is your feature request related to a problem?
Extension points (see #315) will be (optionally) implemented on Extensions. Eventually these points may need to be communicated to OpenSearch to be registered in the appropriate service or module.
Allowing extensions to inherit from appropriate interfaces depending on their type will match the current Plugin implementation.
What solution would you like?
Add a new interface SearchExtension with default implementations for extension points matching SearchPlugin.java.
The text was updated successfully, but these errors were encountered: