Forum: Ferret Segmentation fault (ferret/index.rb:394)

7bc1c1d2b813be5db6ea036a9da0e7ed?d=identicon&s=25 patrick divan (hakita)
on 2010-03-03 22:16
/usr/lib64/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:394:
[BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [x86_64-linux]

Any idea ?
890d52f6ce206b59ca2506fab1e1993f?d=identicon&s=25 Reid Macdonald (reidmix)
on 2010-05-05 07:04
patrick divan wrote:
> /usr/lib64/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:394:
> [BUG] Segmentation fault
> ruby 1.8.6 (2008-08-11) [x86_64-linux]
>
> Any idea ?

Anyone else have hints on this?  I've looked around and the best I can
find
is to move to the ferret server which is when I started to get the
error.

I'm receiving the exact same error right down to the line number.
Which ends up being this line in ferret:
        @searcher.search_each(query, options) do |doc, score|

I'm using the ferret_server already and have an index on one model:
acts_as_ferret :fields => [:description, :opportunity_title,
:tags_with_spaces],
               :ferret => {:or_default => true, :analyzer =>
AfiAnalyzer.new },
               :remote => true

My analyzer follows the format specified by:
http://wiki.github.com/jkraemer/acts_as_ferret/gotchas

Except that it doesn't have the StopFilter:
class AfiAnalyzer < Ferret::Analysis::Analyzer
   include Ferret::Analysis

   def token_stream(field, text)
     StemFilter.new(LowerCaseFilter.new(StandardTokenizer.new(text)))
   end
end

The index gets updated via a rails app and via a cron job both which run
with the same user.
Patrick, any similarities?

Thanks,
reid
This topic is locked and can not be replied to.