Elasticsearch Support
Spring Data support for Elasticsearch contains a wide range of features:
-
Spring configuration support for various Elasticsearch clients.
-
The
ElasticsearchTemplate
andReactiveElasticsearchTemplate
helper classes that provide object mapping between ES index operations and POJOs. -
Exception translation into Spring’s portable Data Access Exception Hierarchy.
-
Feature rich object mapping integrated with Spring’s Conversion Service.
-
Annotation-based mapping metadata that is extensible to support other metadata formats.
-
Java-based query, criteria, and update DSLs.
-
Automatic implementation of imperative and reactive
Repository
interfaces including support for custom query methods.
For most data-oriented tasks, you can use the [Reactive]ElasticsearchTemplate
or the Repository
support, both of which use the rich object-mapping functionality.
Spring Data Elasticsearch uses consistent naming conventions on objects in various APIs to those found in the DataStax Java Driver so that they are familiar and so that you can map your existing knowledge onto the Spring APIs.