Use Elasticsearch 9.2's elasticsearch-rest5-client in spring-boot-elasticsearch#47945
Use Elasticsearch 9.2's elasticsearch-rest5-client in spring-boot-elasticsearch#47945filiphr wants to merge 1 commit intospring-projects:mainfrom
Conversation
Signed-off-by: Filip Hrisafov <filip.hrisafov@gmail.com>
e1c36ab to
dd3389a
Compare
See gh-47945 Signed-off-by: Filip Hrisafov <filip.hrisafov@gmail.com>
|
Thanks very much, @filiphr. |
|
elasticsearch-rest5-client doesn't transitively pull elasticsearch-java. So spring-boot-elasticsearch module alone can't be used without adding elasticsearch-java. I also believe that this low level client created to keep clients compatible with Elasticsearch version 8 and below to support latest Apache client 5. elastic/elasticsearch-java#1064 |
|
Hey @anbusampath, when I did this I didn't realize that there is now a In any case, in my opinion |
This makes more sense. |

Seems like that since the integration to use the new Elasticsearch
Rest5Clientwas done in #46061 and from version 9.2.0 Elasticsearch is now also delivering a dedicatedco.elastic.clients:elasticsearch-rest5-client.With this PR I am adding that client to the managed dependencies and I have made the Java client
co.elastic.clients:elasticsearch-javaan optional dependency.I believe that this is similar to how it was in Spring Boot 3 and similar to 4.0.0-M1.