You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2004/03/31 23:44:43 UTC

DO NOT REPLY [Bug 28108] New: - 1.3 Final Release - TooManyClauses error not allowing search to work

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28108>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28108

1.3 Final Release - TooManyClauses error not allowing search to work

           Summary: 1.3 Final Release - TooManyClauses error not allowing
                    search to work
           Product: Lucene
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Search
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: jacob@niku.com


I have an installation of Lucene that has around 35000 documents in it.  When 
I do a normal search that used to work on Lucene1.2 I get the exception 
below.  This error, is not allowing my search to work at all.  

On a smaller development system with only a few documents I ran the debugger 
on the code.  A similar query as on the 35K system had 3 clauses with 6 nested 
clauses.  I notice that after the BooleanQuery.rewrite() method was called, I 
had over 200 nested clauses.   I am not sure what the purpose of the rewrite() 
method is (weighting maybe), but it seems to be conflicting with the 1024 
maxClauseCount limit.   

__12c55e4:search.advancedSearchResults) Internal Processing exception
org.apache.lucene.search.BooleanQuery$TooManyClauses
        at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:109)
        at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:101)
        at org.apache.lucene.search.MultiTermQuery.rewrite
(MultiTermQuery.java:9
9)
        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:244)
        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:244)
        at org.apache.lucene.search.IndexSearcher.rewrite
(IndexSearcher.java:188
)
        at org.apache.lucene.search.Query.weight(Query.java:120)
        at org.apache.lucene.search.IndexSearcher.search
(IndexSearcher.java:128)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:93)
        at org.apache.lucene.search.Hits.<init>(Hits.java:80)
        at org.apache.lucene.search.Searcher.search(Searcher.java:71)
        at org.apache.lucene.search.Searcher.search(Searcher.java:65)

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