From 4e25ffad396ae76624a1402a3c7e0fa97736b140 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Tue, 28 Nov 2017 15:00:53 +0100 Subject: [PATCH] Fix compilation with Lucene 6.2. Original commit: elastic/x-pack-elasticsearch@a34002a11c5c5b182b6ac0192d0569d603a8ad5a --- .../accesscontrol/SecurityIndexSearcherWrapperUnitTests.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java b/plugin/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java index 27e7b698d4c..297278589f7 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java @@ -522,6 +522,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 {