How can I use the latest Sunspot gem with Solr Cell?

I tried (in vain) to get the latest version of the Sunspot gem (currently 2.0.0.pre.111215, including Solr 3.5), working with Solr Cell.

I am currently using an older version of Sunspot in combination with Solr Cell provided by the following plugin - https://github.com/chebyte/sunspot_cell .

My gemfile for this configuration is as follows:

gem 'sunspot', '1.2.1'
gem 'sunspot_rails' 

Unfortunately, this old Solr / Solr cell combination does not work with many new PDF files. The recommended Apache solution is to upgrade to the latest version.

The SunSpot Solr Cell bolt does not seem to be very well supported. The recently updated version has been switched from the plugin to Gem, but I still cannot get it to work with the latest version of Sunspot Gem. https://github.com/zheileman/sunspot_cell

Does anyone know the correct Gemfile configuration to make elements play together? The closest I have.

gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git'
gem 'sunspot', :git => "git://github.com/sunspot/sunspot.git"
gem 'sunspot_rails', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_rails"

group :development, :test do
  gem 'sunspot_solr', :git => "git://github.com/sunspot/sunspot.git"
end

When I run any rake command, I get the following error.

uninitialized constant Sunspot::RSolr

If I temporarily summarize the pebble sunspot_cell, I can run the Rake tasks, but the actual search is not performed.

I tried manually using the Solr jar into this gem instead of those grouped in sunspot_solr, but without success.

+5
source share
2 answers

, . , -, . , . , sunspot_cell , . ! ().

gem 'sunspot', :git => "git://github.com/sunspot/sunspot.git"
gem 'sunspot_rails', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_rails"
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git'
+4

, . . , =)

gem 'rsolr', :git => 'git://github.com/mwmitchell/rsolr', :branch => "38b5b69a0d63cdf85560806c06f3187ea4339f5a" # 1.0.6 plus the timeout patch
gem 'sunspot'
gem 'sunspot_solr'
gem 'sunspot_rails'
gem 'sunspot_index_queue'
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git', :branch => "bc8ac18de1410b3e29af89c4d028acc6deba1e1c"
+2

All Articles