Topic: solr gem/plugin with / without rails

Hi friends,
     I want to know the best gem/plugins for both rails / pure ruby apps(without using activerecord) to acess solr

I was familiar with acts_as_solr and solr_ruby gem.I think both are not suitable for rails and purerubyapps.These will work either ruby(solr_ruby gem)
or activerecord rails(acts_as_solr)

If anybody have idea that if can we either the above 2 suitable for both rails and pureruby,please tell me