@@ -500,21 +500,17 @@ public void testStarTreeFilterWithBoolQueries() throws IOException {
500
500
.thenReturn (new NumberFieldMapper .NumberFieldType (DV , NumberFieldMapper .NumberType .INTEGER ));
501
501
502
502
// Test 'MUST' clause
503
- StarTreeFilter mustFilter = new StarTreeFilter (Map .of (
504
- SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (0L ))),
505
- DV , List .of (new ExactMatchDimFilter (DV , List .of (0L )))
506
- ));
503
+ StarTreeFilter mustFilter = new StarTreeFilter (
504
+ Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , List .of (new ExactMatchDimFilter (DV , List .of (0L ))))
505
+ );
507
506
long starTreeDocCount = getDocCountFromStarTree (starTreeDocValuesReader , mustFilter , context , searchContext );
508
507
long docCount = getDocCount (docs , Map .of (SNDV , 0L , DV , 0L ));
509
508
assertEquals (docCount , starTreeDocCount );
510
509
511
510
// Test 'SHOULD' clause (same dimension)
512
- StarTreeFilter shouldFilter = new StarTreeFilter (Map .of (
513
- SNDV , Arrays .asList (
514
- new ExactMatchDimFilter (SNDV , List .of (0L )),
515
- new ExactMatchDimFilter (SNDV , List .of (1L ))
516
- )
517
- ));
511
+ StarTreeFilter shouldFilter = new StarTreeFilter (
512
+ Map .of (SNDV , Arrays .asList (new ExactMatchDimFilter (SNDV , List .of (0L )), new ExactMatchDimFilter (SNDV , List .of (1L ))))
513
+ );
518
514
starTreeDocCount = getDocCountFromStarTree (starTreeDocValuesReader , shouldFilter , context , searchContext );
519
515
docCount = getDocCount (docs , Map .of (SNDV , 0L )) + getDocCount (docs , Map .of (SNDV , 1L ));
520
516
assertEquals (docCount , starTreeDocCount );
0 commit comments