O'Reilly logo

Elasticsearch 5.x Cookbook - Third Edition by Alberto Paro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a plugin

Native plugins allow several aspects of the Elasticsearch server to be extended, but they require a good knowledge of Java.

In this recipe we will see how to set up a working environment to develop native plugins.

Getting ready

You need an up-and-running Elasticsearch installation as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.

A Maven tool, or an IDE that supports Java programming, such as Eclipse or IntelliJ IDEA, is required.

The code to this recipe is available in the chapter17/simple_plugin directory.

How to do it...

Generally, Elasticsearch plugins are developed in Java using the Maven build tool and deployed as a ZIP file.

To create a simple JAR plugin, we will perform ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required