Hello,
I have been trying to set up the remote indexing for acts_as_ferret and
followed the guide here:
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer
I added :remote => true to my models and then specified host and port
for the production environment.
After defining the host/port for production, I tried to run my
development server and received the following error:
vendor/plugins/acts_as_ferret/lib/act_methods.rb:66:in `acts_as_ferret':
You have a nil object when you didn't expect it! (NoMethodError)
You might have expected an instance of Array.
Isn't it supposed to work just fine even though we don't specify neither
the development nor the test environment in the ferret_server.yml?
Anyways, I then decided to specify development environment in the
ferret_server.yml
Here is how it's setup:
development:
host: localhost
port: 3000 (my rails app port)
Sure enough I don't get that error anymore and my development server
boots up just fine.
However, when I executed my search it didn't work (I use id_multi_search
btw so need to add :store_class_name => true to my models as well). The
following is the error description:
DRb::DRbConnError (too large packet 1213486160):
C:/ruby/lib/ruby/1.8/drb/drb.rb:573:in `load'
C:/ruby/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'
C:/ruby/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'
C:/ruby/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'
C:/ruby/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'
C:/ruby/lib/ruby/1.8/drb/drb.rb:1170:in `open'
C:/ruby/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
C:/ruby/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
C:/ruby/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
C:/work/myapp/vendor/plugins/acts_as_ferret/lib/remote_index.rb:25:in
`id_multi_search'
C:/work/myapp/vendor/plugins/acts_as_ferret/lib/class_methods.rb:117:in
`id_multi_search'
C:/work/myapp/lib/ferret_search.rb:73:in `quick_search'
...
Any clue guys?
Thank you in advance for the help.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk