lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xing@mac.com" <x...@mac.com>
Subject BooleanQuery$TooManyClauses
Date Mon, 11 Jul 2005 05:45:35 GMT
Did a google serach on the problem when using the range search phrase of 
  "+datefield:[199801 TO 200512]" (date stored as "YYYYMMDD") which 
returns 1 million hits.

error: org.apache.lucene.search.BooleanQuery$TooManyClauses

Adding "-Dorg.apache.lucene.maxClauseCount=2400" to java option allowed 
the search query to run without error. The actual value needed is 
between 2300 and 2400. At 2300 the query fails.

My question is how does Lucene perform range query?  As a bunch of 
smaller boolean queries? How does one estimate the number of clauses 
required for a general query and more specifically on a range query?

Thanks.

Xing Li

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


Mime
View raw message