Apache Lucene open-source search software
improve text of exception
Daniel Nabercfb14e1be870
diff --git a/src/java/org/apache/lucene/search/FieldCacheImpl.java b/src/java/org/apache/lucene/search/FieldCacheImpl.javaindex 86b08bebe33..dfa28df64eb 100644--- a/src/java/org/apache/lucene/search/FieldCacheImpl.java+++ b/src/java/org/apache/lucene/search/FieldCacheImpl.java@@ -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);