lucene 4: Fixed BitsetExecutionChildQuerySearchTests class.
This commit is contained in:
parent
9a79fb40bf
commit
e2c33ed659
|
@ -80,13 +80,13 @@ public class ChildCollector extends Collector {
|
|||
return;
|
||||
}
|
||||
for (Tuple<AtomicReader, IdReaderTypeCache> tuple : readers) {
|
||||
IndexReader indexReader = tuple.v1();
|
||||
AtomicReader indexReader = tuple.v1();
|
||||
IdReaderTypeCache idReaderTypeCache = tuple.v2();
|
||||
if (idReaderTypeCache == null) { // might be if we don't have that doc with that type in this reader
|
||||
continue;
|
||||
}
|
||||
int parentDocId = idReaderTypeCache.docById(parentId);
|
||||
if (parentDocId != -1) {
|
||||
if (parentDocId != -1 && (indexReader.getLiveDocs() == null || indexReader.getLiveDocs().get(parentDocId))) {
|
||||
FixedBitSet docIdSet = parentDocs().get(indexReader.getCoreCacheKey());
|
||||
if (docIdSet == null) {
|
||||
docIdSet = new FixedBitSet(indexReader.maxDoc());
|
||||
|
|
Loading…
Reference in New Issue