Can we put two plugins together?

Hello,

I am fresh to Elasticsearch. I would like to merge two plugins into one because the function inside one plugin may call the function in another plugin. Is there a way to achieve that? I noticed that in "plugin-descriptor.properties", we can only register one plugin.

Thanks.:innocent:

Best,
Lin

No.

Why would you do this?

That said a single plugin can offer multiple features, like extending a REST endpoint, adding an analyzer and an ingest processor...

Hi David,

Thanks so much for your reply!
I couldn't find documentation or examples for a single plugin with multiple features. In my case, I would like to register two plugins, one implements SearchPlugin and another implements ActionPlugin. How can I achieve that?

Thanks!:blush:

Best,
Lin

Make your plugin class implement both SearchPlugin and ActionPlugin interfaces.

Got it! Thanks!!:grin:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.