mirror of https://github.com/apache/lucene.git
improve text of exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@165658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b01de31134
commit
cfb14e1be8
|
@ -262,7 +262,9 @@ implements FieldCache {
|
|||
|
||||
// store term text
|
||||
// we expect that there is at most one term per document
|
||||
if (t >= mterms.length) throw new RuntimeException ("there are more terms than documents in field \"" + field + "\"");
|
||||
if (t >= mterms.length) throw new RuntimeException ("there are more terms than " +
|
||||
"documents in field \"" + field + "\", but it's impossible to sort on " +
|
||||
"tokenized fields");
|
||||
mterms[t] = term.text();
|
||||
|
||||
termDocs.seek (termEnum);
|
||||
|
|
Loading…
Reference in New Issue