lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r425524 - /lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java
Date Tue, 25 Jul 2006 21:03:17 GMT
Author: dnaber
Date: Tue Jul 25 14:03:17 2006
New Revision: 425524

URL: http://svn.apache.org/viewvc?rev=425524&view=rev
Log:
slightly more verbose output for TooManyClauses exception

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java?rev=425524&r1=425523&r2=425524&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java Tue Jul 25 14:03:17
2006
@@ -41,7 +41,12 @@
    * a PrefixQuery, FuzzyQuery, WildcardQuery, or RangeQuery 
    * is expanded to many terms during search. 
    */
-  public static class TooManyClauses extends RuntimeException {}
+  public static class TooManyClauses extends RuntimeException {
+    public TooManyClauses() {}
+    public String getMessage() {
+      return "maxClauseCount is set to " + maxClauseCount;
+    }
+  }
 
   /** Return the maximum number of clauses permitted, 1024 by default.
    * Attempts to add more than the permitted number of clauses cause {@link



Mime
View raw message