[sup-talk] Too many clauses

Dennis Griffith dgriffi3 at uiuc.edu
Sun Dec 9 20:31:23 EST 2007


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 <except.c>: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


More information about the sup-talk mailing list