From mboxrd@z Thu Jan 1 00:00:00 1970 From: dgriffi3@uiuc.edu (Dennis Griffith) Date: Sun, 09 Dec 2007 19:31:23 -0600 Subject: [sup-talk] Too many clauses In-Reply-To: <1197229372-sup-8664@south> References: <20071203195238.GA1174@Nyx.cs.uiuc.edu> <1197229372-sup-8664@south> Message-ID: <1197249489-sup-4661@Nyx> Excerpts from William Morgan's message of Sun Dec 09 13:44:43 -0600 2007: > Excerpts from Dennis Griffith's message of Mon Dec 03 11:52:38 -0800 2007: > > I started getting this crash upon start after updating to 0.3 from 0.1. > > --- Ferret::StateError from thread: load threads for thread-index-mode > > State Error occured at :93 in xraise > > Error occured in q_boolean.c:1595 - bq_add_query_nr > > Two many clauses. The max clause limit is set to <1024> but your query has <1024> clauses. You can try increasing :max_clause_count for the BooleanQuery or using a different type of query. > > > > /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/index.rb:270:in `add_query' > > At first, I thought, "Great! An error message that contains its own > solution!" But the max_clause_count thing seems to have disappeared in > recent versions of Ferret. I thought that too and tried to fix it. However not knowing hardly any ruby proved a bit of a hinderence. > Can you try this patch, please? I could, although I wouldn't be able to tell you if it works anymore. After installing 0.3 again, in preparation for trying the patch, I found I no longer hit the problem. I haven't updated ferret during this time, so perhaps my message count has fallen low enough not to trigger the problem, if I hit this again I will try the patch and let you know. -- Dennis Griffith