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