Discussion:
undefined method `ferret_rank='
Philip Ingram
2009-06-03 17:09:25 UTC
Permalink
i am getting the following error message using the AAF gem version
0.4.4 in my rails app.

undefined method `ferret_rank=' for #<Page:0x246060c>

i"m using multi search but i have the same code working on another
app, using the plugin. To me this method looks like it's missing from
the gem version, but is that possible?

I have an index compiled, but this error appears whenever i search for
something in the index. when i search for terms not in the index, it
works as expected,.. nothing is returned.

More trace stack:

/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
attribute_methods.rb:255:in `method_missing'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:
474:in `retrieve_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:
473:in `each'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:
473:in `retrieve_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:
452:in `each'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:
452:in `retrieve_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
ferret_find_methods.rb:43:in `ar_find'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
ferret_find_methods.rb:12:in `find_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:
343:in `find'
Thoughts???
Philip Ingram
2009-06-03 22:44:40 UTC
Permalink
i am not using multi search, i meant to write i am using a shared
index, but it only had ONE model in it for now. although that still
doesn't seem to make a difference.

sorry for the confusion.
Post by Philip Ingram
i am getting the following error message using the AAF gem version
0.4.4 in my rails app.
undefined method `ferret_rank=' for #<Page:0x246060c>
i"m using multi search but i have the same code working on another
app, using the plugin. To me this method looks like it's missing
from the gem version, but is that possible?
I have an index compiled, but this error appears whenever i search
for something in the index. when i search for terms not in the
index, it works as expected,.. nothing is returned.
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/
attribute_methods.rb:255:in `method_missing'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
acts_as_ferret.rb:474:in `retrieve_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
acts_as_ferret.rb:473:in `each'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
acts_as_ferret.rb:473:in `retrieve_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
acts_as_ferret.rb:452:in `each'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
acts_as_ferret.rb:452:in `retrieve_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
ferret_find_methods.rb:43:in `ar_find'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
ferret_find_methods.rb:12:in `find_records'
/Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.4/lib/
acts_as_ferret.rb:343:in `find'
Thoughts???
_______________________________________________
Ferret-talk mailing list
http://rubyforge.org/mailman/listinfo/ferret-talk
Loading...