mirror of https://github.com/apache/lucene.git
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:
parent
20ad9d7253
commit
5ba9ca4be2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue