Fix compilation with Lucene 6.2.

Original commit: elastic/x-pack-elasticsearch@a34002a11c
This commit is contained in:
Adrien Grand 2017-11-28 15:00:53 +01:00
parent cdb85d8317
commit 4e25ffad39
1 changed files with 5 additions and 0 deletions

View File

@ -522,6 +522,11 @@ public class SecurityIndexSearcherWrapperUnitTests extends ESTestCase {
assertTrue(seenLeaves.add(context.reader().getCoreCacheHelper().getKey())); assertTrue(seenLeaves.add(context.reader().getCoreCacheHelper().getKey()));
return weight.bulkScorer(context); return weight.bulkScorer(context);
} }
@Override
public boolean isCacheable(LeafReaderContext ctx) {
return true;
}
} }
static class CreateScorerOnceQuery extends Query { static class CreateScorerOnceQuery extends Query {