[TEST] Defer to wrapped weight's isCacheable method
in SecurityIndexSearcherWrapperUnitTests
Fixes a compilation error where the overriden method was missing.
Original commit: elastic/x-pack-elasticsearch@7e2a26e91798852a550b53bb2835573e910673da
@@ -535,6 +535,11 @@ public class SecurityIndexSearcherWrapperUnitTests extends ESTestCase {
assertTrue(seenLeaves.add(context.reader().getCoreCacheHelper().getKey()));
return weight.bulkScorer(context);
}
+
+ @Override
+ public boolean isCacheable(LeafReaderContext lrc) {
+ return weight.isCacheable(lrc);
+ }
}
static class CreateScorerOnceQuery extends Query {
