@@ -576,7 +576,8 @@ public void shouldDeleteDocumentForGivenQuery() {
576
576
577
577
// when
578
578
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 ()));
580
581
581
582
// then
582
583
Query searchQuery = getTermQuery ("id" , documentId );
@@ -607,8 +608,13 @@ public void shouldDeleteAcrossIndex() {
607
608
608
609
// when
609
610
Query query = getTermQuery ("message" , "foo" );
611
+ <<<<<<< HEAD
610
612
operations .delete (getDeleteQuery (query ),
611
613
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 )
612
618
613
619
// then
614
620
assertThat (operations .count (query , IndexCoordinates .of (MULTI_INDEX_1_NAME , MULTI_INDEX_2_NAME ))).isEqualTo (0 );
@@ -619,6 +625,8 @@ public void shouldDeleteAcrossIndex() {
619
625
620
626
protected abstract DeleteQuery getDeleteQuery (Query query );
621
627
628
+ protected abstract DeleteQuery getDeleteQuery (Query query );
629
+
622
630
@ Test // DATAES-547
623
631
public void shouldDeleteAcrossIndexWhenNoMatchingDataPresent () {
624
632
@@ -641,8 +649,13 @@ public void shouldDeleteAcrossIndexWhenNoMatchingDataPresent() {
641
649
// when
642
650
Query query = getTermQuery ("message" , "negative" );
643
651
652
+ <<<<<<< HEAD
644
653
operations .delete (getDeleteQuery (query ),
645
654
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 )
646
659
647
660
operations .indexOps (IndexCoordinates .of (MULTI_INDEX_1_NAME )).refresh ();
648
661
operations .indexOps (IndexCoordinates .of (MULTI_INDEX_2_NAME )).refresh ();
@@ -1005,7 +1018,12 @@ public void shouldDeleteGivenCriteriaQuery() {
1005
1018
CriteriaQuery criteriaQuery = new CriteriaQuery (new Criteria ("message" ).contains ("test" ));
1006
1019
1007
1020
// when
1021
+ <<<<<<< HEAD
1008
1022
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 )
1009
1027
1010
1028
// then
1011
1029
StringQuery stringQuery = new StringQuery (matchAllQuery ().toString ());
@@ -2437,7 +2455,12 @@ public void shouldDeleteOnlyDocumentsMatchedByDeleteQuery() {
2437
2455
2438
2456
// when
2439
2457
Query query = operations .idsQuery (Arrays .asList (documentIdToDelete ));
2458
+ <<<<<<< HEAD
2440
2459
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 )
2441
2464
2442
2465
// then
2443
2466
// document with id "remainingDocumentId" should still be indexed
@@ -2467,8 +2490,13 @@ public void shouldDeleteOnlyDocumentsMatchedByCriteriaQuery() {
2467
2490
2468
2491
// when
2469
2492
CriteriaQuery criteriaQuery = new CriteriaQuery (new Criteria ("id" ).is (documentIdToDelete ));
2493
+ <<<<<<< HEAD
2470
2494
operations .delete (DeleteQuery .builder (criteriaQuery ).build (), SampleEntity .class ,
2471
2495
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 )
2472
2500
2473
2501
// then
2474
2502
// document with id "remainingDocumentId" should still be indexed
0 commit comments