# Does Spring Boot 3.1 require Elasticsearch 8?

**URL:** https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335
**Category:** Elasticsearch
**Created:** [October 18, 2023, 9:19pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335 "2023-10-18T21:19:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Michal\_Stefaniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_stefaniuk/32/113425_2.png) [@Michal\_Stefaniuk](https://discuss.elastic.co/u/Michal_Stefaniuk)
#### Post date: [October 18, 2023, 9:19pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/1 "2023-10-18T21:19:29Z")

</div>

Hey, quick question.

We're working on an application that is currently using java 11, spring boot 2.7 and elasticsearch 7.17.10.

We are migrating to java 17 and spring boot 3.1. Recently we stumbled upon a document that kind of suggests that with those changes, we will need to migrate to elasticsearch 8.x. However, we do not use Spring Data Elasticsearch.

This is the article: [Spring Data Elasticsearch - Reference Documentation](https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/)

**Question:** Do we really need to migrate to Elasticsearch 8.x? Does Elasticsearch require version 8 in order to be compatible with Java 17/ Spring Boot 3?

We will need to do this in future, for sure, however we would like to postpone it so we're wondering if that's really necessary right now.

Best regards.

---

<div class="post-metadata">

### Author: ![Michal\_Stefaniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_stefaniuk/32/113425_2.png) [@Michal\_Stefaniuk](https://discuss.elastic.co/u/Michal_Stefaniuk)
#### Post date: [October 20, 2023, 6:30pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/2 "2023-10-20T18:30:45Z")

</div>

Any thoughts? 🙂

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 21, 2023, 6:02am UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/3 "2023-10-21T06:02:36Z")

</div>

How are you connecting

> [@Michal\_Stefaniuk](#):
>
> However, we do not use Spring Data Elasticsearch.

How are you connecting with / integrating with Elasticsearch.

Are you using the Elasticsearch Java Client? Or something else... If so, I don't think those requirements are relevant.

Those requirements if you use the Spring Data Elasticsearch if I'm reading that correctly. The elastic team does not own/control that code base.

I would also suggest to take a look at

> **[Support Matrix](https://www.elastic.co/support/matrix#matrix_jvm)**

---

<div class="post-metadata">

### Author: ![Michal\_Stefaniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_stefaniuk/32/113425_2.png) [@Michal\_Stefaniuk](https://discuss.elastic.co/u/Michal_Stefaniuk)
#### Post date: [October 21, 2023, 11:06am UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/4 "2023-10-21T11:06:41Z")

</div>

Hey @stephenb , thanks for your answer!

We are not using Spring Data Elasticsearch, we are only using Elasticsearch Java Client. This article was also confusing to us a little bit. Does it mean that we can skip elasticsearch migration to version 8? (at least for now). It looks like we could.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 21, 2023, 3:04pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/5 "2023-10-21T15:04:11Z")

</div>

According to the Elasticsearch / JVM matrix ES 7.17.10 with JVM 17 is supported.

There is no requirement for 8.x as far as I can tell.

---

<div class="post-metadata">

### Author: ![Michal\_Stefaniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_stefaniuk/32/113425_2.png) [@Michal\_Stefaniuk](https://discuss.elastic.co/u/Michal_Stefaniuk)
#### Post date: [October 21, 2023, 3:15pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/6 "2023-10-21T15:15:56Z")

</div>

That's what I thought. Thank you @stephenb

We will proceed without Elasticsearch 8.x upgrade, however I will get back to this post with an update, if something interesting will surprise us 🙂

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 21, 2023, 3:20pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/7 "2023-10-21T15:20:27Z")

</div>

But Don't Wait forever to get to 8.x ... Lots ... Lots of excellent capabilities waiting for you and our team. 🙂

---

<div class="post-metadata">

### Author: ![Michal\_Stefaniuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_stefaniuk/32/113425_2.png) [@Michal\_Stefaniuk](https://discuss.elastic.co/u/Michal_Stefaniuk)
#### Post date: [October 21, 2023, 3:31pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/8 "2023-10-21T15:31:29Z")

</div>

> [@stephenb](#):
>
> Don't Wait for

For sure we will migrate at some point, it's already on our roadmap 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 18, 2023, 3:32pm UTC](https://discuss.elastic.co/t/does-spring-boot-3-1-require-elasticsearch-8/345335/9 "2023-11-18T15:32:07Z")

</div>

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