Creating a river plugin
In Chapter 8, Rivers, we saw how powerful the river plugins are. They allow you to populate an ElasticSearch cluster from different sources (DBMS, NoSQL system, streams, and so on). Creating a custom river is necessary if you need to do the following:
- Add a new NoSQL data source that is not supported by the already existing plugins
- Add a new stream type
- Add a custom business logic to import data in ElasticSearch, such as field modification, data aggregation, and, in general, a data brewery
In this recipe, we will implement a simple river that generates documents with a field that contains an incremental value and ingests them in ElasticSearch.
Getting ready
You will need a working ElasticSearch node, a Maven build tool, and optionally ...
Get ElasticSearch Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.