{"id":78656,"library":"sunspot-rails","title":"Sunspot Rails","description":"Sunspot::Rails integrates the Sunspot Solr search library with ActiveRecord, providing search and indexing methods on models and automatic commit at the end of each Rails request.","status":"active","version":"2.7.1","language":"ruby","source_language":null,"source_url":"https://github.com/sunspot/sunspot","tags":["solr","search","rails","fulltext","active-record"],"install":[{"cmd":"gem install sunspot_rails","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'sunspot_rails', '~> 2.7.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Sunspot::Rails","correct":"require 'sunspot/rails'"}],"quickstart":{"code":"require 'sunspot/rails'\nclass Post < ActiveRecord::Base\n  searchable do\n    text :title, :body\n  end\nend\nPost.search { fulltext 'hello' }.results","lang":"ruby","description":"Define a searchable ActiveRecord model and perform a fulltext search."},"warnings":[],"env_vars":null,"search_vec":"'activ':35 'active-record':34 'activerecord':12 'automat':21 'commit':22 'end':25 'fulltext':33 'index':16 'integr':5 'librari':10 'method':17 'model':19 'provid':13 'rail':2,4,28,32 'record':36 'request':29 'search':9,14,31 'solr':8,30 'sunspot':1,3,7","created_at":"2026-06-18T04:25:52.200306+00:00","updated_at":"2026-06-18T04:25:52.200306+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/sunspot/sunspot/tree/master/sunspot_rails","github":"https://github.com/sunspot/sunspot","docs":"http://www.rubydoc.info/gems/sunspot_rails/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}