lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Salem" <ch...@mainsequence.net>
Subject toomanyclauses exception
Date Wed, 27 Dec 2006 14:42:55 GMT
Hi All,

I'm getting a 'TooManyClauses' Exception and I'm not sure how to fix this.  Here's a sample
query that I'm using:

+(+freeform_text:exhibit* +(+freeform_text:dispaly +freeform_text:event*) +(+freeform_text:sale*
+freeform_text:sells +freeform_text:develop*) +(+freeform_text:trade +freeform_text:show +freeform_text:trade
+freeform_text:shows)) +degree_type:5 +position_desired:ftp +city:washington~0.5 +state:dc
+ncountry:usa +last_modified:[2005-12-26 TO 2006-12-26]

Here's the exception I'm getting:

org.apache.lucene.search.BooleanQuery$TooManyClauses
 at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:160)
 at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:151)
 at org.apache.lucene.search.PrefixQuery.rewrite(PrefixQuery.java:52)
 at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:372)
 at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:372)
 at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:372)
 at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:137)
 at org.apache.lucene.search.Query.weight(Query.java:93)
 at org.apache.lucene.search.Hits.<init>(Hits.java:41)
 at org.apache.lucene.search.Searcher.search(Searcher.java:44)
 at org.apache.lucene.search.Searcher.search(Searcher.java:36)
 at net.mainsequence.pcr.lucene.LuceneHandler.multiSearch(LuceneHandler.java:382)
 at net.mainsequence.pcr.lucene.LuceneServlet.searchIndex(LuceneServlet.java:169)
 at net.mainsequence.pcr.lucene.LuceneServlet.processRequest(LuceneServlet.java:83)
 at net.mainsequence.pcr.lucene.LuceneServlet.doPost(LuceneServlet.java:72)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Unknown Source)

Is there anyway to increase the amount of clauses lucene can take?  This kind of large query
is not uncommon so any help would be greatly appreciated.


Chris Salem
440.946.5214 x5458
chris@mainsequence.net 

(The following links were included with this email:)
mailto:chris@mainsequence.net



(The following links were included with this email:)
mailto:chris@mainsequence.net



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message