Skip to content

Commit 6e86bb2

Browse files
authored
Upgrade to Elasticsearch 9.3.1.
Closes #3250 Signed-off-by: Peter-Josef Meisch <pj.meisch@sothawo.com>
1 parent d9a70f8 commit 6e86bb2

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<springdata.commons>4.1.0-SNAPSHOT</springdata.commons>
2222

2323
<!-- version of the ElasticsearchClient -->
24-
<elasticsearch-java>9.2.5</elasticsearch-java>
25-
<elasticsearch-rest-client>9.2.5</elasticsearch-rest-client>
24+
<elasticsearch-java>9.3.1</elasticsearch-java>
25+
<elasticsearch-rest-client>9.3.1</elasticsearch-rest-client>
2626

2727
<hoverfly>0.20.2</hoverfly>
2828
<log4j>2.25.3</log4j>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[[new-features.6-1-0]]
55
== New in Spring Data Elasticsearch 6.1
66

7-
* Upgrade to Elasticsearch 9.2.5
7+
* Upgrade to Elasticsearch 9.3.1
88
* Add support to use `IndexCoordinates` as repository query parameter
99
* Add support for includeNamedQueriesScore in Query
1010

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

Lines changed: 1 addition & 1 deletion
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-
| 2026.0 | 6.1.x | 9.2.5 | 7.0.x
9+
| 2026.0 | 6.1.x | 9.3.1 | 7.0.x
1010
| 2025.1 | 6.0.x | 9.2.2 | 7.0.x
1111
| 2025.0 | 5.5.x | 8.18.1 | 6.2.x
1212
| 2024.1 | 5.4.xfootnote:oom[Out of maintenance] | 8.15.5 | 6.1.x

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,17 @@ public co.elastic.clients.elasticsearch.core.ReindexRequest reindex(ReindexReque
900900
}
901901

902902
SourceFilter sourceFilter = source.getSourceFilter();
903-
if (sourceFilter != null && sourceFilter.getIncludes() != null) {
904-
s.sourceFields(Arrays.asList(sourceFilter.getIncludes()));
903+
if (sourceFilter != null && (sourceFilter.getIncludes() != null || sourceFilter.getExcludes() != null)) {
904+
s.sourceFields(cfg -> cfg
905+
.filter(f -> {
906+
if (sourceFilter.getIncludes() != null) {
907+
f.includes(Arrays.asList(sourceFilter.getIncludes()));
908+
}
909+
if (sourceFilter.getExcludes() != null) {
910+
f.excludes(Arrays.asList(sourceFilter.getExcludes()));
911+
}
912+
return f;
913+
}));
905914
}
906915
return s;
907916
}) //

src/test/resources/testcontainers-elasticsearch.properties

Lines changed: 1 addition & 1 deletion
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=9.2.5
18+
sde.testcontainers.image-version=9.3.1
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)