lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volodymyr Bychkoviak <>
Subject Re: Question to Lucene Index
Date Fri, 24 Feb 2006 13:32:36 GMT
This is not the case.

maxClauseCount limit number of terms that can fit into BooleanQuery 
during some queries rewriting. And default value is 1024, not 32.

32 required/prohibited clauses is limitation of Lucene 1.4.3 due to 
usage of bit patterns to mask required/prohibited clauses.
You can solve this problem by using Lucene 1.9 RC or use Filters.

Michael D. Curtin wrote:
> Thomas Papke wrote:
>> i am a "newby" in usage of Apache Lucene. If have a relativly big 
>> database indexed by lucene (about 300MB File). Up to now - all users 
>> could search over the hole index. How to restrict the resultset? I 
>> have tried it with adding some BooleanQuerys to restrict entries. But 
>> with this solution i get sometimes a "More than 32 
>> required/prohibited clauses in query." Exception. Anyone a solution 
>> for my that problem or some sites for me where i could look at (with 
>> some examples)? Or is there a way to generate (relativly fast) a 
>> subindex?
> You can increase the limit from 32 to just about anything you want via 
> the system property org.apache.lucene.maxClauseCount.  You can use 
> code like this:
> System.setProperty"org.apache.lucene.maxClauseCount", "1000000");
> Or, you can set a value on the JVM's command line with -D.
> Good luck!
> --MDC
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Volodymyr Bychkoviak

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