Re: too many clauses exception

2008-07-04 Thread Daniel Naber
On Freitag, 4. Juli 2008, Gaurav Sharma wrote: > I am stuck with an exception in lucene (too many clauses). > When i am using a wild card such as a* i am getting too many clauses > exception. It saying maximum clause count is set to 1024. Is there any > way to increase this count. Please see http

Re: too many clauses exception

2008-07-03 Thread Chris Lu
This is easy, use: BooleanQuery.setMaxClauseCount(4096); -- Chris Lu - Instant Scalable Full-Text Search On Any Database/Application site: http://www.dbsight.net demo: http://search.dbsight.com Lucene Database Search in 3 minutes: http://wiki.dbsight.com/index.php?

RE: Too many clauses

2005-10-19 Thread Sharma, Siddharth
cene.apache.org Subject: Re: Too many clauses : : To circumvent it, here are a few options that I have thought of: : 1. Chunk it up: : a. Create a filter based on a query that has a maximum of 1024. : b. Get its bits. : c. Get the next 1024 blocked skus and create a filter out of it and get

Re: Too many clauses

2005-10-17 Thread Chris Hostetter
: : To circumvent it, here are a few options that I have thought of: : 1. Chunk it up: : a. Create a filter based on a query that has a maximum of 1024. : b. Get its bits. : c. Get the next 1024 blocked skus and create a filter out of it and get : its bits. : d. AND the two BitSets. :

RE: Too many clauses

2005-10-17 Thread Sharma, Siddharth
his? At x max_clauses, jvm heap should be y meg At x + 1024, it should be z meg -Original Message- From: Aigner, Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 3:42 PM To: java-user@lucene.apache.org Subject: RE: Too many clauses Another way around it is to increa

RE: Too many clauses

2005-10-17 Thread Aigner, Thomas
Another way around it is to increase the max clause count. //Setting the clause Count BooleanQuery.setMaxClauseCount(int); Can use maxint or some number smaller.. When I set this high, I have had to set the java pool higher for memory as well. Tom -Original Message- From: Sharma, Siddh