Fix compilation with Lucene 6.2.
Original commit: elastic/x-pack-elasticsearch@8c9712f6f306f841f461ab0e76c51bcda3e5ca68
@@ -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 ctx) {
+ return true;
+ }
}
static class CreateScorerOnceQuery extends Query {
