From 7b19bd1541b69a864497009fee89f5900bfb6f7a Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 5 Feb 2013 22:58:26 +0000 Subject: [PATCH] make slow-wrapper slow again git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1442781 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/java/org/apache/lucene/index/MultiDocValues.java | 1 + .../org/apache/lucene/index/SlowCompositeReaderWrapper.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java b/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java index 088226f5a40..43aeeb8405a 100644 --- a/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java +++ b/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java @@ -291,6 +291,7 @@ public class MultiDocValues { public void lookupOrd(int ord, BytesRef result) { int subIndex = (int) mapping.subIndexes.get(ord); int segmentOrd = (int) (ord - mapping.globalOrdDeltas.get(ord)); + assert subIndex < values.length; values[subIndex].lookupOrd(segmentOrd, result); } diff --git a/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java b/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java index 25c79869d06..690480dc346 100644 --- a/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java +++ b/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java @@ -111,6 +111,9 @@ public final class SlowCompositeReaderWrapper extends AtomicReader { return dv; } } + if (true) { // nocommit + return MultiDocValues.getSortedValues(in, field); + } // cached multi dv assert map != null; int size = in.leaves().size();