Upgrade to lucene-5.5.0-snapshot-1721183.

Original commit: elastic/x-pack-elasticsearch@2dea406d5f
This commit is contained in:
Adrien Grand 2015-12-21 17:30:20 +01:00
parent 78e6b37ae1
commit dbc863add7
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ public class ShieldIndexSearcherWrapper extends IndexSearcherWrapper {
static void intersectScorerAndRoleBits(Scorer scorer, SparseFixedBitSet roleBits, LeafCollector collector, Bits acceptDocs) throws IOException {
// ConjunctionDISI uses the DocIdSetIterator#cost() to order the iterators, so if roleBits has the lowest cardinality it should be used first:
DocIdSetIterator iterator = ConjunctionDISI.intersect(Arrays.asList(new BitSetIterator(roleBits, roleBits.approximateCardinality()), scorer));
DocIdSetIterator iterator = ConjunctionDISI.intersectIterators(Arrays.asList(new BitSetIterator(roleBits, roleBits.approximateCardinality()), scorer.iterator()));
for (int docId = iterator.nextDoc(); docId < DocIdSetIterator.NO_MORE_DOCS; docId = iterator.nextDoc()) {
if (acceptDocs == null || acceptDocs.get(docId)) {
collector.collect(docId);