lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1433736 - /lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesProducer.java
Date Tue, 15 Jan 2013 23:30:46 GMT
Author: mikemccand
Date: Tue Jan 15 23:30:45 2013
New Revision: 1433736

URL: http://svn.apache.org/viewvc?rev=1433736&view=rev
Log:
get lookupTerm working

Modified:
    lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesProducer.java

Modified: lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesProducer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesProducer.java?rev=1433736&r1=1433735&r2=1433736&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesProducer.java
(original)
+++ lucene/dev/branches/lucene4547/lucene/core/src/java/org/apache/lucene/codecs/lucene41/Lucene41SimpleDocValuesProducer.java
Tue Jan 15 23:30:45 2013
@@ -240,23 +240,22 @@ class Lucene41SimpleDocValuesProducer ex
           throw new RuntimeException(bogus);
         }
       }
-/* nocommit: WTF ant test  -Dtestcase=TestSearchAfter -Dtests.method=testQueries -Dtests.seed=701751F140F42B9D
-Dtests.slow=true -Dtests.locale=es_DO -Dtests.timezone=Asia/Sakhalin -Dtests.file.encoding=UTF-8
+
       @Override
       public int lookupTerm(BytesRef key, BytesRef spare) {
         try {
           InputOutput<Long> o = fstEnum.seekCeil(key);
           if (o == null) {
             return -getValueCount()-1;
-          } else if (o.input.equals(Util.toIntsRef(spare, scratchInts))) {
-            return 0;
+          } else if (o.input.equals(key)) {
+            return o.output.intValue();
           } else {
-            return (int)-o.output-1;
+            return (int) -o.output-1;
           }
         } catch (IOException bogus) {
           throw new RuntimeException(bogus);
         }
       }
-      */
 
       @Override
       public int getValueCount() {



Mime
View raw message