LUCENE-6599: Fix test bug in TestUninvertingReader.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-06-23 14:06:51 +00:00
parent 6e0d10d257
commit e39473a5a3
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;
import org.apache.lucene.document.IntField;
import org.apache.lucene.document.LongField;
import org.apache.lucene.index.DocValues;
import org.apache.lucene.index.LeafReader;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.DirectoryReader;
@ -273,7 +274,7 @@ public class TestUninvertingReader extends LuceneTestCase {
for (LeafReaderContext rc : ir.leaves()) {
final LeafReader ar = rc.reader();
for (String f : UNINVERT_MAP.keySet()) {
final SortedSetDocValues v = ar.getSortedSetDocValues(f);
final SortedSetDocValues v = DocValues.getSortedSet(ar, f);
final long valSetSize = v.getValueCount();
assertTrue(f + ": Expected no more then " + EXPECTED_VALSET_SIZE + " values per segment, got " +
valSetSize + " from: " + ar.toString(),