0

Hello i"m trying to implement an app which draws its contents via Active Resource, but i'd like to be able to search these contents. is it possible to use sunspot solr with active resource?

bbuegler
  • 13
  • 3

1 Answers1

0

Yes. Follow the approach outlined on my blog at http://www.chandranshu.com/sunspot-with-activeresource/ .

The critical part is to create an InstanceAdapter and a DataAccessor and include them into your ActiveResource model. Rest all you can figure out from the errors that you get.

Chandranshu
  • 3,669
  • 3
  • 20
  • 37