lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1334258 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocTermOrds.java
Date Fri, 04 May 2012 23:41:13 GMT
Author: mikemccand
Date: Fri May  4 23:41:12 2012
New Revision: 1334258

URL: http://svn.apache.org/viewvc?rev=1334258&view=rev
Log:
LUCENE-4030: getOrdTermsEnum no longer returns null when no terms were uninverted (SOLR-3427)

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocTermOrds.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocTermOrds.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocTermOrds.java?rev=1334258&r1=1334257&r2=1334258&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocTermOrds.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocTermOrds.java Fri
May  4 23:41:12 2012
@@ -324,7 +324,7 @@ public class TestDocTermOrds extends Luc
 
     //final TermsEnum te = subR.fields().terms("field").iterator();
     final TermsEnum te = dto.getOrdTermsEnum(r);
-    if (te == null) {
+    if (dto.numTerms() == 0) {
       if (prefixRef == null) {
         assertNull(MultiFields.getTerms(r, "field"));
       } else {



Mime
View raw message