make slow-wrapper slow again

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1442781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-02-05 22:58:26 +00:00
parent efada75bd8
commit 7b19bd1541
2 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,7 @@ public class MultiDocValues {
public void lookupOrd(int ord, BytesRef result) { public void lookupOrd(int ord, BytesRef result) {
int subIndex = (int) mapping.subIndexes.get(ord); int subIndex = (int) mapping.subIndexes.get(ord);
int segmentOrd = (int) (ord - mapping.globalOrdDeltas.get(ord)); int segmentOrd = (int) (ord - mapping.globalOrdDeltas.get(ord));
assert subIndex < values.length;
values[subIndex].lookupOrd(segmentOrd, result); values[subIndex].lookupOrd(segmentOrd, result);
} }

View File

@ -111,6 +111,9 @@ public final class SlowCompositeReaderWrapper extends AtomicReader {
return dv; return dv;
} }
} }
if (true) { // nocommit
return MultiDocValues.getSortedValues(in, field);
}
// cached multi dv // cached multi dv
assert map != null; assert map != null;
int size = in.leaves().size(); int size = in.leaves().size();