| Path: | README |
| Last Update: | Fri May 11 02:48:27 -0700 2007 |
This plugin adds full text search capabilities and many other nifty features from Apache‘s Solr to any Rails model. It was based on the first draft by Erik Hatcher.
| Erik Hatcher: | First draft |
| Thiago Jackiw: | Current developer (tjackiw at gmail dot com) |
The current stable release is v0.8 and was released on 05-10-2007.
Please refer to the CHANGE_LOG
On your Rails’ root directory, just type
script/plugin install svn://svn.railsfreaks.com/projects/acts_as_solr/trunk
Once the plugin has been installed, make sure you copy the schema.xml from the acts_as_solr‘s root directory to DIR_WHERE_YOU_INSTALLED_SOLR/example/solr/conf
This short video tutorial demonstrates how easy it is to integrate Solr and the acts_as_solr plugin to any Rails application. To watch the streamed version, click here, or to download the quicktime movie (5.5MB) to your computer, click here.
Just include the line below to any of your ActiveRecord models:
acts_as_solr
Or if you want, you can specify only the fields that should be indexed:
acts_as_solr :fields => [:name, :author]
Then to find instances of your model, just do:
Model.find_by_solr(query) or Model.find_id_by_solr(query)
Or if you want to specify the starting row and the number of rows per page:
Model.find_by_solr(query, :start => 0, :rows => 10)
Please see ActsAsSolr::ActsMethods for a complete info
You can always use our mailing list (groups.google.com/group/acts_as_solr) to post any questions you may have.
I welcome contributors so if you‘d like to contribute to the development, please send me an email (tjackiw at gmail dot com).
To see this plugin‘s timeline, please check out our Trac
Please report the bugs you find by opening tickets here
Released under the MIT license.