I'm getting this exception from acts_as_ferret:

A RuntimeError occurred in search#similar:

  cannot determine document number from primary key:
#<MyClass:0x9feba20>
  [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:132:in
`document_number'

As a result of this call:

  object.more_like_this

The relevant backtrace:

  [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:132:in
`document_number'
  [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/more_like_this.rb:64:in
`more_like_this'
  /usr/local/lib/ruby/1.8/monitor.rb:229:in `synchronize'
  [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/more_like_this.rb:61:in
`more_like_this'
  [RAILS_ROOT]/app/controllers/search_controller.rb:52:in `similar'

I've played with this for hours and can't seem to track it down.  My
best guess is a corrupt index.  Does that sound about right?

BTW, I'm on trunk, revision 118.

It's a strange error because it up until last night, I never saw it in
production, only in development.  Now I'm getting exception notification
emails from production.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to