spring-projects / spring-data-elasticsearch

Provide support to increase developer productivity in Java when using Elasticsearch. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-elasticsearch/
Apache License 2.0
2.9k stars 1.33k forks source link

There is a conflict between the package types of the two versions. #2956

Closed aiYunS-love closed 1 month ago

aiYunS-love commented 1 month ago
org.springframework.data spring-data-elasticsearch 5.3.2 co.elastic.clients elasticsearch-java 7.17.23 65A64D319DE99AB65FD6B36511BD7636 987FB4D647E725DF226AAA2DBD9B7A3A
sothawo commented 1 month ago

Spring Data Elasticsearch since version 5.3.2 is built against Elasticsearch 8.13.4. The parameter of these type obviously changed in the Elasticsearch client since version 7.17.23, that's nothing where Spring Data Elasticsearch could do anything. Some of these parameters in the Elasticsearch client library even changed with patch level changes.

The conflict you get is because you do not use the Elasticsearch library that Spring Data Elasticsearch is built against. You should use the Elasticsearch client libs in the correct versions, as defined by the Spring Data Elasticsearch pom and documented in the release notes (https://docs.spring.io/spring-data/elasticsearch/reference/elasticsearch/versions.html it seems I forgot to update this with 5.3.2)