摘要:Gemfile gem 'sunspot_rails'gem 'sunspot_solr'然后执行 bundle之后就是rails g sunspot:solr:install生成一个config/sunspot.yml文件,不需要管理这个生成文件然后执行bundle exec rake sunspot:solr:startclass Post < ActiveRecord::Base searchable do text :title, :body text :comments do comments.map { |comment| comment.bo
阅读全文
11 2012 档案
浙公网安备 33010602011771号