The acts_as_solr plugin allows you to interact Rails with the Solr search engine. Please take a look at this project's home page for a complete info.