lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1442781 - in /lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index: MultiDocValues.java SlowCompositeReaderWrapper.java
Date Tue, 05 Feb 2013 22:58:26 GMT
Author: rmuir
Date: Tue Feb  5 22:58:26 2013
New Revision: 1442781

URL: http://svn.apache.org/viewvc?rev=1442781&view=rev
Log:
make slow-wrapper slow again

Modified:
    lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java
    lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java

Modified: lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java?rev=1442781&r1=1442780&r2=1442781&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java
(original)
+++ lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java
Tue Feb  5 22:58:26 2013
@@ -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);
     }
  

Modified: lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java?rev=1442781&r1=1442780&r2=1442781&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java
(original)
+++ lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/index/SlowCompositeReaderWrapper.java
Tue Feb  5 22:58:26 2013
@@ -111,6 +111,9 @@ public final class SlowCompositeReaderWr
         return dv;
       }
     }
+    if (true) { // nocommit
+      return MultiDocValues.getSortedValues(in, field);
+    }
     // cached multi dv
     assert map != null;
     int size = in.leaves().size();



Mime
View raw message