Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* major cleanup. added 'delete_by_query' support. fixed bugs in 'find…
…_by_solr' it was returning an array of an array * added support for count_by_solr * added support for eager loading of ActiveRecord models via :include
- Loading branch information
Showing
10 changed files
with
131 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
require 'will_paginate' #required for pagination support | ||
require 'solr_searchable' | ||
|
||
#require 'rsolr/curb' | ||
# monkey patch RSolr to use our new Curb based HTTP client | ||
# module RSolr | ||
# module Connectable | ||
# def connect opts={} | ||
# Client.new RSolr::Connection::Curb.new(opts) | ||
# end | ||
# end | ||
# extend Connectable | ||
# end | ||
# begin | ||
# RSolr.connect :url => '' #dummy | ||
# rescue => ex | ||
# #ignore | ||
# end | ||
|
||
ActiveRecord::Base.send(:extend, SolrSearchable::SolrSearchableMethods) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.