Skip to content

Commit 08e3d06

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 08e3d06

File tree

5 files changed

+46
-6
lines changed

5 files changed

+46
-6
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/opensearch/data/client/osc/OpenSearchOSCIntegrationTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ protected DeleteQuery getDeleteQuery(Query query) {
110110
return Queries.getBuilderWithMatchAllQuery();
111111
}
112112

113+
@Override
114+
protected DeleteQuery getDeleteQuery(Query query) {
115+
return DeleteQuery.builder(query).build();
116+
}
117+
113118
@Override
114119
protected BaseQueryBuilder<?, ?> getBuilderWithMatchQuery(String field, String value) {
115120
return NativeQuery.builder().withQuery(matchQueryAsQuery(field, value, null, null));

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

Lines changed: 29 additions & 1 deletion
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,13 @@ public void shouldDeleteAcrossIndex() {
607608

608609
// when
609610
Query query = getTermQuery("message", "foo");
611+
<<<<<<< HEAD
610612
operations.delete(getDeleteQuery(query),
611613
SampleEntity.class, IndexCoordinates.of(MULTI_INDEX_ALL));
614+
=======
615+
operations.delete(getDeleteQuery(query), SampleEntity.class,
616+
IndexCoordinates.of(MULTI_INDEX_ALL));
617+
>>>>>>> e4a28b2 (Spring Boot 3.5 / Spring Data Elasticsearch 6.0 baseline)
612618

613619
// then
614620
assertThat(operations.count(query, IndexCoordinates.of(MULTI_INDEX_1_NAME, MULTI_INDEX_2_NAME))).isEqualTo(0);
@@ -619,6 +625,8 @@ public void shouldDeleteAcrossIndex() {
619625

620626
protected abstract DeleteQuery getDeleteQuery(Query query);
621627

628+
protected abstract DeleteQuery getDeleteQuery(Query query);
629+
622630
@Test // DATAES-547
623631
public void shouldDeleteAcrossIndexWhenNoMatchingDataPresent() {
624632

@@ -641,8 +649,13 @@ public void shouldDeleteAcrossIndexWhenNoMatchingDataPresent() {
641649
// when
642650
Query query = getTermQuery("message", "negative");
643651

652+
<<<<<<< HEAD
644653
operations.delete(getDeleteQuery(query),
645654
SampleEntity.class, IndexCoordinates.of("test-index-*"));
655+
=======
656+
operations.delete(getDeleteQuery(query), SampleEntity.class,
657+
IndexCoordinates.of("test-index-*"));
658+
>>>>>>> e4a28b2 (Spring Boot 3.5 / Spring Data Elasticsearch 6.0 baseline)
646659

647660
operations.indexOps(IndexCoordinates.of(MULTI_INDEX_1_NAME)).refresh();
648661
operations.indexOps(IndexCoordinates.of(MULTI_INDEX_2_NAME)).refresh();
@@ -1005,7 +1018,12 @@ public void shouldDeleteGivenCriteriaQuery() {
10051018
CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("message").contains("test"));
10061019

10071020
// when
1021+
<<<<<<< HEAD
10081022
operations.delete(DeleteQuery.builder(criteriaQuery).build(), SampleEntity.class, IndexCoordinates.of(indexNameProvider.indexName()));
1023+
=======
1024+
operations.delete(getDeleteQuery(criteriaQuery), SampleEntity.class,
1025+
IndexCoordinates.of(indexNameProvider.indexName()));
1026+
>>>>>>> e4a28b2 (Spring Boot 3.5 / Spring Data Elasticsearch 6.0 baseline)
10091027

10101028
// then
10111029
StringQuery stringQuery = new StringQuery(matchAllQuery().toString());
@@ -2437,7 +2455,12 @@ public void shouldDeleteOnlyDocumentsMatchedByDeleteQuery() {
24372455

24382456
// when
24392457
Query query = operations.idsQuery(Arrays.asList(documentIdToDelete));
2458+
<<<<<<< HEAD
24402459
operations.delete(DeleteQuery.builder(query).build(), SampleEntity.class, IndexCoordinates.of(indexNameProvider.indexName()));
2460+
=======
2461+
operations.delete(getDeleteQuery(query), SampleEntity.class,
2462+
IndexCoordinates.of(indexNameProvider.indexName()));
2463+
>>>>>>> e4a28b2 (Spring Boot 3.5 / Spring Data Elasticsearch 6.0 baseline)
24412464

24422465
// then
24432466
// document with id "remainingDocumentId" should still be indexed
@@ -2467,8 +2490,13 @@ public void shouldDeleteOnlyDocumentsMatchedByCriteriaQuery() {
24672490

24682491
// when
24692492
CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("id").is(documentIdToDelete));
2493+
<<<<<<< HEAD
24702494
operations.delete(DeleteQuery.builder(criteriaQuery).build(), SampleEntity.class,
24712495
IndexCoordinates.of(indexNameProvider.indexName()));
2496+
=======
2497+
operations.delete(DeleteQuery.builder(criteriaQuery).build(), SampleEntity.class,
2498+
IndexCoordinates.of(indexNameProvider.indexName()));
2499+
>>>>>>> e4a28b2 (Spring Boot 3.5 / Spring Data Elasticsearch 6.0 baseline)
24722500

24732501
// then
24742502
// 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)