lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r165658 - /lucene/java/trunk/src/java/org/apache/lucene/search/FieldCacheImpl.java
Date Mon, 02 May 2005 18:43:49 GMT
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);



Mime
View raw message