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?