mirror of https://github.com/apache/lucene.git
Fix hidden bug in ReaderContextBuilder, as we never checked the context of a MultiReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1212831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
39c2ae5268
commit
00e5695f20
|
@ -189,7 +189,7 @@ public final class ReaderUtil {
|
|||
|
||||
int newDocBase = 0;
|
||||
for (int i = 0; i < sequentialSubReaders.length; i++) {
|
||||
build(newParent, sequentialSubReaders[i], i, newDocBase);
|
||||
children[i] = build(newParent, sequentialSubReaders[i], i, newDocBase);
|
||||
newDocBase += sequentialSubReaders[i].maxDoc();
|
||||
}
|
||||
return newParent;
|
||||
|
|
Loading…
Reference in New Issue