I’m fairly new to ferret / aaf and finding it much easier to use than
HyperEstraier (which I migrated from). However, I am getting a few
errors and I need to figure out if they’re problems with my usage of
ferret or a bug I should report. I’m currently running Ferret 0.10.11
with acts_as_ferret (latest via svn external) and 3 times today I’ve
seen the following error in production:
A Ferret::StateError occurred in directory#search:
State Error occurred at <except.c>:79 in xraise
Error occurred in index.c:2098 - stde_doc_num
Illegal state of TermDocEnum. You must call #next before you call
#doc_num
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:370:in
`search.each’
The index in question is on a single model and contains about 330K
items. I’m not doing anything unusual as far as I know – just a call
to find_by_contents sorted by a timestamp (stored nontokenized). Can
anyone offer some advice on what I might be doing to cause this? I’m
also getting occasional segfaults (already submitted as a ticket on the
trac) but they don’t appear to be tied to this error.
Jim