You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by dn...@apache.org on 2005/05/02 20:43:49 UTC

svn commit: r165658 - /lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java

Author: dnaber
Date: Mon May  2 11:43:48 2005
New Revision: 165658

URL: http://svn.apache.org/viewcvs?rev=165658&view=rev
Log:
improve text of exception

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java?rev=165658&r1=165657&r2=165658&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java Mon May  2 11:43:48 2005
@@ -262,7 +262,9 @@
 
             // 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);