quirkey / websolr-rails forked from onemorecloud/acts_as_solr

websolr's fork of acts_as_solr

This URL has Read+Write access

name age message
file .document Fri Aug 21 15:19:40 -0700 2009 Version bump to 0.0.0 [fizx]
file .gitignore Mon Aug 24 10:48:41 -0700 2009 docs [fizx]
file CHANGELOG Tue Sep 15 15:30:31 -0700 2009 CHANGELOG [fizx]
file LICENSE Sat May 03 15:39:08 -0700 2008 git import of acts_as_solr [Thiago Jackiw]
file README.rdoc Mon Aug 24 11:10:48 -0700 2009 rdoc [fizx]
file Rakefile Mon Aug 24 11:10:48 -0700 2009 rdoc [fizx]
file TESTING_THE_PLUGIN Tue Nov 18 06:53:03 -0800 2008 Updated testing howto for the new unit test suite. [mattmatt]
file VERSION Tue Sep 15 15:29:14 -0700 2009 Version bump to 1.4.1 [fizx]
directory bin/ Tue Sep 15 13:13:40 -0700 2009 local development server [fizx]
directory config/ Tue Aug 25 11:32:03 -0700 2009 env compatibility [fizx]
file generate_rdoc.sh Tue Aug 25 15:09:13 -0700 2009 fix rdoc [fizx]
directory lib/ Thu Sep 24 15:16:52 -0700 2009 Raise a specific error(class) with a failed con... [quirkey]
directory solr/ Fri Aug 21 15:19:40 -0700 2009 Version bump to 0.0.0 [fizx]
directory test/ Sun Mar 22 11:35:22 -0700 2009 Minor fixes to get the tests working with Rails... [mattmatt]
file websolr-rails.gemspec Tue Sep 15 15:30:34 -0700 2009 Regenerated gemspec for version 1.4.1 [fizx]
README.rdoc

websolr-rails gem

This gem provides Rails support for websolr.com, and a command-line tool to interact with the indexes hosted there. The Rails support is reverse-compatible with acts_as_solr.

RDoc

Ruby documentation is at onemorecloud.github.com/websolr-rails

Current Release

There is no numbered release yet, but the master branch is always considered stable.

Support

For now, please send email to support@onemorecloud.com

Changes

Please refer to the CHANGELOG

Installation

$: gem sources -a gems.github.com $: sudo gem install onemorecloud-websolr-rails

Configuration

$: export WEBSOLR_USER=my_username $: export WEBSOLR_PWD=my_password $: cd my_rails_project $: websolr add -n my_index_name $: websolr configure -e development -n my_index_name

Basic Usage

# 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) #query is a string representing your query

# Please see ActsAsSolr::ActsMethods for a complete info

acts_as_solr in your tests

If you would like to mock out Solr calls so that a Solr server is not needed (and your tests will run much faster), just add this to your `test_helper.rb` or similar:

    class ActsAsSolr::Post
      def self.execute(request)
        true
      end
    end

(via)

Authors

Websolr is by Onemorecloud.

Based on acts_as_solr by: Erik Hatcher, Thiago Jackiw, Luke Francl, Mathias Meyer, and others.

Release Information

Released under the MIT license.