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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]