Skip to content

Commit d101eeb

Browse files
authored
Upgrade to Elasticsearch-8.14.0.
Original Pull Request #2926 Closes #2924
1 parent 4ef5af1 commit d101eeb

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<springdata.commons>3.4.0-SNAPSHOT</springdata.commons>
2222

2323
<!-- version of the ElasticsearchClient -->
24-
<elasticsearch-java>8.13.4</elasticsearch-java>
24+
<elasticsearch-java>8.14.0</elasticsearch-java>
2525

2626
<blockhound-junit>1.0.9.RELEASE</blockhound-junit>
2727
<hoverfly>0.18.1</hoverfly>

src/main/antora/modules/ROOT/pages/elasticsearch/elasticsearch-new.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[[new-features.5-4-0]]
55
== New in Spring Data Elasticsearch 5.4
66

7-
* Upgrade to Elasticsearch 8.13.4.
7+
* Upgrade to Elasticsearch 8.14.0.
88

99
[[new-features.5-3-0]]
1010
== New in Spring Data Elasticsearch 5.3

src/main/antora/modules/ROOT/pages/elasticsearch/versions.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following table shows the Elasticsearch and Spring versions that are used by
66
[cols="^,^,^,^",options="header"]
77
|===
88
| Spring Data Release Train | Spring Data Elasticsearch | Elasticsearch | Spring Framework
9-
| 2024.1 (in development) | 5.3.x | 8.13.4 | 6.1.x
9+
| 2024.1 (in development) | 5.3.x | 8.14.0 | 6.1.x
1010
| 2024.0 | 5.3.1 | 8.13.4 | 6.1.x
1111
| 2023.1 (Vaughan) | 5.2.x | 8.11.1 | 6.1.x
1212
| 2023.0 (Ullmann) | 5.1.x | 8.7.1 | 6.0.x

src/main/java/org/springframework/data/elasticsearch/client/elc/RequestConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public co.elastic.clients.elasticsearch.indices.PutTemplateRequest indicesPutTem
409409

410410
if (putTemplateRequest.getSettings() != null) {
411411
Map<String, JsonData> settings = getTemplateParams(putTemplateRequest.getSettings().entrySet());
412-
builder.settings(settings);
412+
builder.settings(sb -> sb.otherSettings(settings));
413413
}
414414

415415
if (putTemplateRequest.getMappings() != null) {

src/test/java/org/springframework/data/elasticsearch/repositories/knn/KnnSearchIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void shouldReturnXAxisVector() {
9494

9595
// when
9696
NativeQuery query = new NativeQueryBuilder()
97-
.withKnnSearches(ksb -> ksb.queryVector(xAxisVector).k(3L).field("vector"))
97+
.withKnnSearches(ksb -> ksb.queryVector(xAxisVector).k(3).field("vector"))
9898
.withPageable(Pageable.ofSize(2))
9999
.build();
100100
SearchHits<VectorEntity> result = operations.search(query, VectorEntity.class);
@@ -118,7 +118,7 @@ public void shouldReturnYAxisVector() {
118118

119119
// when
120120
NativeQuery query = new NativeQueryBuilder()
121-
.withKnnSearches(ksb -> ksb.queryVector(yAxisVector).k(3L).field("vector"))
121+
.withKnnSearches(ksb -> ksb.queryVector(yAxisVector).k(3).field("vector"))
122122
.withPageable(Pageable.ofSize(2))
123123
.build();
124124
SearchHits<VectorEntity> result = operations.search(query, VectorEntity.class);

src/test/resources/testcontainers-elasticsearch.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
#
1717
sde.testcontainers.image-name=docker.elastic.co/elasticsearch/elasticsearch
18-
sde.testcontainers.image-version=8.13.4
18+
sde.testcontainers.image-version=8.14.0
1919
#
2020
#
2121
# needed as we do a DELETE /* at the end of the tests, will be required from 8.0 on, produces a warning since 7.13

0 commit comments

Comments
 (0)