Howdy!
Setting up a model with is-searchable 1.0 and sphinx-adapter 0.7.1
returns no results and the current sphinx-adapter on github results in
a gem dependency error. I've hacked sphinx-adapter to get the ids of
the documents, but everything dies horribly when dm-is-searchable trys
to map the ids to load the actual objects. I've tried returning a hash
with keys as symbols, strings, as well as returning a Hashie::Mash.
Symbol keys returns nothing, strings raise a "options may not be empty
if a field is a non-operator", and Hashie::Mash returns this:
NoMethodError: undefined method `persisted_state=' for nil:NilClass
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/
activesupport-3.0.0.beta4/lib/active_support/whiny_nil.rb:48:in
`method_missing'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/model.rb:644:in `load'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/
activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:212:in
`map'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/model.rb:584:in `each'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/model.rb:584:in `map'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/model.rb:584:in `load'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/repository.rb:162:in `read'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/collection.rb:1118:in `lazy_load'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/support/lazy_array.rb:411:in `each'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-
core-1.0.0/lib/dm-core/collection.rb:510:in `each'
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/dm-is-
searchable-1.0.0/lib/dm-is-searchable/is/searchable.rb:32:in `search'
from (irb):1
from :0
Any ideas on how I can get this running so I can do some searchin'?
Thanks
Jake
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.