my guess is that you have problems with the strings you try to index not being compliant with the locale of your system. This might be especially the case if you retrieve the strings you want to index through ajax.
Please have a look at:
1. http://www.ruby-forum.com/topic/64430
2. http://projects.jkraemer.net/acts_as_ferret/wiki/TypoWithFerret (at the bottom)
3. http://ferret.davebalmain.com/trac/ticket/55
maybe you could print the strings to the logfile. if they sound a little strange like query=%C3%A5&commit=search you definitly should try different locale settings.
Regards
Jan
On 5/23/06, John Andrews <[EMAIL PROTECTED]> wrote:
Hi,
I just installed via script/plugin from the stable svn tag. (Revision 54) I'm running Rails 1.1.2 and have Ferret 0.9.3 (with C extensions. no compilation problems)
I put together a simple model to test it and I'm getting a segfault.
The model:
class Report < ActiveRecord::Base
acts_as_ferret :fields => [:title, :name]
end
$ script/console
Loading development environment.
>> a = Report.new :title => "test", :name => "me"
=> #<Report:0xb780db98 @attributes={"name"=>"me", "title"=>"test", "auto_update"=>true, "path"=>nil}, @new_record=true>
>> a.save
./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:466: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-linux]
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:466 reads:
self.class.ferret_index << self.to_doc if @ferret_reindex
by inserting logger.debug statements I have been able to determine that self.to_doc isn't the problem so I think it must be segfaulting during the <<.
Does someone know if I have set up something improperly, or is this truly a bug?
Thanks,John
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk
_______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

