Integrate Elasticsearch in Spring Boot Application

Hi,

I am new to Elasticsearch and I am trying to integrate the Elasticsearch SDK from my Spring boot application for the current version 7.5.2. Most of the references I got were all from previous versions of Elasticsearch. Can someone help me with finding proper documentation?

Welcome!

It's more a question to be asked on Spring forums I guess?

May be you are looking for this? https://docs.spring.io/spring-data/elasticsearch/docs/4.0.0.M2/reference/html/#new-features

If you are not using Spring Data, then can you tell what is your problem exactly?

When using springboot with
elasticsearch, you need to be explicit with some transitive dependencies as SpringBoot declares a version 6.4...

Basically you can put this in your pom.xml:

<properties>
  <elasticsearch.version>7.6.0<elasticsearch.version>
</properties>

See documentation here: https://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-customize-dependency-versions

I have already looked into this documentation, and whatever I am trying I keep getting errors as many of the classes are removed from the current version. Thanks for your reply though, will keep digging into it.

May be if you share details that'd help?

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