lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26634] New: - BooleanQuery$TooManyClauses
Date Tue, 03 Feb 2004 15:51:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26634>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26634

BooleanQuery$TooManyClauses

           Summary: BooleanQuery$TooManyClauses
           Product: Lucene
           Version: unspecified
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Search
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: peter.schaefer@healyhudson.com


Happens when a RangeQuery is performed on a large range:

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.RangeQuery.rewrite(RangeQuery.java:137)
	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)


Looking into the source, I found that the RangeQuery is "unrolled" into a vast
sequence of term queries; and throws an exception when 1024 is reached.

Is there a workaround for that situation ?
Otherwise a RangeQuery would become practically useless...

---------------------------------------------------------------------
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