LUCENE-4030: getOrdTermsEnum no longer returns null when no terms were uninverted (SOLR-3427)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1334258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-05-04 23:41:12 +00:00
parent 20ad9d7253
commit 5ba9ca4be2
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ public class TestDocTermOrds extends LuceneTestCase {
//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 {