lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/queryParser QueryParser.java QueryParser.jj
Date Wed, 26 Nov 2003 11:00:58 GMT
ehatcher    2003/11/26 03:00:58

  Modified:    src/java/org/apache/lucene/queryParser QueryParser.java
                        QueryParser.jj
  Log:
  Catch TooManyClauses and throw ParseException instead
  
  Revision  Changes    Path
  1.8       +3 -0      jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.java
  
  Index: QueryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- QueryParser.java	13 Nov 2003 11:42:26 -0000	1.7
  +++ QueryParser.java	26 Nov 2003 11:00:58 -0000	1.8
  @@ -110,6 +110,9 @@
       catch (TokenMgrError tme) {
         throw new ParseException(tme.getMessage());
       }
  +    catch (BooleanQuery.TooManyClauses tmc) {
  +      throw new ParseException("Too many boolean clauses");
  +    }
     }
   
     /**
  
  
  
  1.38      +3 -0      jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj
  
  Index: QueryParser.jj
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- QueryParser.jj	13 Nov 2003 11:42:26 -0000	1.37
  +++ QueryParser.jj	26 Nov 2003 11:00:58 -0000	1.38
  @@ -172,6 +172,9 @@
       catch (TokenMgrError tme) {
         throw new ParseException(tme.getMessage());
       }
  +    catch (BooleanQuery.TooManyClauses tmc) {
  +      throw new ParseException("Too many boolean clauses");
  +    }
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message