I am running into the following error when I try to search across
multiple models with multi_search() I have rebuilt the indices and can
search on each model individually using the Rails console.
Here is the output from the console.
Post.multi_search(‘new’, [Message, WikiPage])
ArgumentError: wrong number of arguments (1 for 0)
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:441:in
initialize' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:441:in
create_new_multi_reader’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:406:in
ensure_reader' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:397:in
initialize’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:378:in
multi_index' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:364:in
id_multi_search’
from
./script/…/config/…/config/…/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:353:in
`multi_search’
from (irb):1Post.find_by_contents(‘new’)
=> [#<Post:0xb7349984 @attributes=…Message.find_by_contents(‘new’)
=> [#<Message:0xb7302dcc @attributes=…
I am using the latest aaf from subversion and ferret 0.9.3
All models declare acts_as_ferret :store_class_name => true