Skip to content

Commit 56a7eee

Browse files
committed
Spring Boot 3.5 / Spring Data Elasticsearch 6.0 baseline
Signed-off-by: Andriy Redko <[email protected]> Signed-off-by: Andriy Redko <[email protected]>
1 parent e77c001 commit 56a7eee

File tree

4 files changed

+24
-14
lines changed

4 files changed

+24
-14
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The Spring Data OpenSearch follows the release model of the Spring Data Elastics
2424

2525
| Spring Data Release Train | Spring Data OpenSearch | Spring Data Elasticsearch | OpenSearch Server | OpenSearch Client | Spring Framework | Spring Boot |
2626
|---------------------------|------------------------|---------------------------|-------------------|-------------------|------------------|---------------|
27+
| 2025.1 | 2.0.x | 6.0.x | 1.x / 2.x | 2.10.x and above | 7.0.x | 3.5.x |
2728
| 2025.0 | 1.7.x | 5.5.x | 1.x / 2.x | 2.10.x and above | 6.2.x | 3.4.x |
2829
| 2024.1 | 1.6.x | 5.4.x | 1.x / 2.x | 2.10.x and above | 6.2.x | 3.4.x |
2930
| 2024.0 | 1.5.x | 5.3.x | 1.x / 2.x | 2.10.x and above | 6.1.x | 3.2.x / 3.3.x |

settings.gradle.kts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ dependencyResolutionManagement {
1616
}
1717

1818
create("springLibs") {
19-
version("spring", "6.2.7")
20-
version("spring-boot", "3.4.5")
21-
library("data-commons", "org.springframework.data:spring-data-commons:3.5.0")
22-
library("data-elasticsearch", "org.springframework.data:spring-data-elasticsearch:5.5.0")
19+
version("spring", "7.0.0-M5")
20+
version("spring-boot", "3.5.0")
21+
library("data-commons", "org.springframework.data:spring-data-commons:4.0.0-M3")
22+
library("data-elasticsearch", "org.springframework.data:spring-data-elasticsearch:6.0.0-M3")
2323
library("web", "org.springframework", "spring-web").versionRef("spring")
2424
library("context", "org.springframework", "spring-context").versionRef("spring")
2525
library("tx", "org.springframework", "spring-tx").versionRef("spring")
@@ -74,12 +74,18 @@ pluginManagement {
7474
maven {
7575
url = uri("https://repo.spring.io/release/")
7676
}
77+
maven {
78+
url = uri("https://repo.spring.io/milestone/")
79+
}
7780
}
7881
}
7982

8083
dependencyResolutionManagement {
8184
repositories {
8285
mavenCentral()
86+
maven {
87+
url = uri("https://repo.spring.io/milestone/")
88+
}
8389
}
8490
}
8591

spring-data-opensearch/src/test/java/org/springframework/data/elasticsearch/core/ElasticsearchIntegrationTests.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ public void shouldDeleteDocumentForGivenQuery() {
576576

577577
// when
578578
Query query = getTermQuery("id", documentId);
579-
operations.delete(DeleteQuery.builder(query).build(), SampleEntity.class, IndexCoordinates.of(indexNameProvider.indexName()));
579+
operations.delete(DeleteQuery.builder(query).build(), SampleEntity.class,
580+
IndexCoordinates.of(indexNameProvider.indexName()));
580581

581582
// then
582583
Query searchQuery = getTermQuery("id", documentId);
@@ -607,8 +608,8 @@ public void shouldDeleteAcrossIndex() {
607608

608609
// when
609610
Query query = getTermQuery("message", "foo");
610-
operations.delete(getDeleteQuery(query),
611-
SampleEntity.class, IndexCoordinates.of(MULTI_INDEX_ALL));
611+
operations.delete(getDeleteQuery(query), SampleEntity.class,
612+
IndexCoordinates.of(MULTI_INDEX_ALL));
612613

613614
// then
614615
assertThat(operations.count(query, IndexCoordinates.of(MULTI_INDEX_1_NAME, MULTI_INDEX_2_NAME))).isEqualTo(0);
@@ -641,8 +642,8 @@ public void shouldDeleteAcrossIndexWhenNoMatchingDataPresent() {
641642
// when
642643
Query query = getTermQuery("message", "negative");
643644

644-
operations.delete(getDeleteQuery(query),
645-
SampleEntity.class, IndexCoordinates.of("test-index-*"));
645+
operations.delete(getDeleteQuery(query), SampleEntity.class,
646+
IndexCoordinates.of("test-index-*"));
646647

647648
operations.indexOps(IndexCoordinates.of(MULTI_INDEX_1_NAME)).refresh();
648649
operations.indexOps(IndexCoordinates.of(MULTI_INDEX_2_NAME)).refresh();
@@ -1005,7 +1006,8 @@ public void shouldDeleteGivenCriteriaQuery() {
10051006
CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("message").contains("test"));
10061007

10071008
// when
1008-
operations.delete(DeleteQuery.builder(criteriaQuery).build(), SampleEntity.class, IndexCoordinates.of(indexNameProvider.indexName()));
1009+
operations.delete(getDeleteQuery(criteriaQuery), SampleEntity.class,
1010+
IndexCoordinates.of(indexNameProvider.indexName()));
10091011

10101012
// then
10111013
StringQuery stringQuery = new StringQuery(matchAllQuery().toString());
@@ -2437,7 +2439,8 @@ public void shouldDeleteOnlyDocumentsMatchedByDeleteQuery() {
24372439

24382440
// when
24392441
Query query = operations.idsQuery(Arrays.asList(documentIdToDelete));
2440-
operations.delete(DeleteQuery.builder(query).build(), SampleEntity.class, IndexCoordinates.of(indexNameProvider.indexName()));
2442+
operations.delete(getDeleteQuery(query), SampleEntity.class,
2443+
IndexCoordinates.of(indexNameProvider.indexName()));
24412444

24422445
// then
24432446
// document with id "remainingDocumentId" should still be indexed
@@ -2467,8 +2470,8 @@ public void shouldDeleteOnlyDocumentsMatchedByCriteriaQuery() {
24672470

24682471
// when
24692472
CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("id").is(documentIdToDelete));
2470-
operations.delete(DeleteQuery.builder(criteriaQuery).build(), SampleEntity.class,
2471-
IndexCoordinates.of(indexNameProvider.indexName()));
2473+
operations.delete(DeleteQuery.builder(criteriaQuery).build(), SampleEntity.class,
2474+
IndexCoordinates.of(indexNameProvider.indexName()));
24722475

24732476
// then
24742477
// document with id "remainingDocumentId" should still be indexed

version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.7.0
1+
version=2.0.0

0 commit comments

Comments
 (0)