@@ -1616,9 +1616,6 @@ public void shouldPassIndicesOptionsForGivenSearchScrollQuery() {
1616
1616
assertThat (entities .size ()).isGreaterThanOrEqualTo (1 );
1617
1617
}
1618
1618
1619
- @ DisabledIf (value = "newElasticsearchClient" ,
1620
- disabledReason = "todo #2138 can't check response, open ES issue 161 that does not allow seqno" )
1621
- // and version to be set in the request
1622
1619
@ Test // DATAES-487
1623
1620
public void shouldReturnSameEntityForMultiSearch () {
1624
1621
@@ -1641,13 +1638,9 @@ public void shouldReturnSameEntityForMultiSearch() {
1641
1638
}
1642
1639
}
1643
1640
1644
- @ DisabledIf (value = "newElasticsearchClient" ,
1645
- disabledReason = "todo #2138 can't check response, open ES issue 161 that does not allow seqno" )
1646
- // and version to be set in the request
1647
1641
@ Test // DATAES-487
1648
1642
public void shouldReturnDifferentEntityForMultiSearch () {
1649
1643
1650
- Class <Book > clazz = Book .class ;
1651
1644
IndexOperations bookIndexOperations = operations .indexOps (Book .class );
1652
1645
bookIndexOperations .delete ();
1653
1646
bookIndexOperations .createWithMapping ();
@@ -1662,7 +1655,8 @@ public void shouldReturnDifferentEntityForMultiSearch() {
1662
1655
queries .add (getTermQuery ("message" , "ab" ));
1663
1656
queries .add (getTermQuery ("description" , "bc" ));
1664
1657
1665
- List <SearchHits <?>> searchHitsList = operations .multiSearch (queries , Lists .newArrayList (SampleEntity .class , clazz ),
1658
+ List <SearchHits <?>> searchHitsList = operations .multiSearch (queries , Lists .newArrayList (SampleEntity .class ,
1659
+ Book .class ),
1666
1660
IndexCoordinates .of (indexNameProvider .indexName (), bookIndex .getIndexName ()));
1667
1661
1668
1662
bookIndexOperations .delete ();
@@ -1674,7 +1668,7 @@ public void shouldReturnDifferentEntityForMultiSearch() {
1674
1668
SearchHits <?> searchHits1 = searchHitsList .get (1 );
1675
1669
assertThat (searchHits1 .getTotalHits ()).isEqualTo (1L );
1676
1670
SearchHit <Book > searchHit1 = (SearchHit <Book >) searchHits1 .getSearchHit (0 );
1677
- assertThat (searchHit1 .getContent ().getClass ()).isEqualTo (clazz );
1671
+ assertThat (searchHit1 .getContent ().getClass ()).isEqualTo (Book . class );
1678
1672
}
1679
1673
1680
1674
@ Test
@@ -3070,9 +3064,6 @@ void searchShouldReturnSeqNoPrimaryTerm() {
3070
3064
assertThatSeqNoPrimaryTermIsFilled (retrieved );
3071
3065
}
3072
3066
3073
- @ DisabledIf (value = "newElasticsearchClient" ,
3074
- disabledReason = "todo #2138 can't check response, open ES issue 161 that does not allow seqno" )
3075
- // and version to be set in the request
3076
3067
@ Test // DATAES-799
3077
3068
void multiSearchShouldReturnSeqNoPrimaryTerm () {
3078
3069
OptimisticEntity original = new OptimisticEntity ();
0 commit comments