Term term = termEnum.term();
if (term == null || term.field() != field)
break;
if (t > order.maxValue()) {
throw new IOException("maximum number of value cannot exceed: " + order.maxValue());
}
// store term text
// we expect that there is at most one term per document
if (t >= length)
throw new RuntimeException("there are more terms than " + "documents in field \"" + field