Registry / database / sunspot

sunspot

JSON →
library2.7.1rbrubygemsunverified

A powerful, all-Ruby API for the Solr search engine, providing a DSL for indexing and searching persistent Ruby classes.

gem install sunspot
INSTALL
IMPORT
SIG · SUNSPOT
S
sunspot
databaserubyv2.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sunspot
require 'sunspot'

Define a searchable model and perform a full-text search with a filter.

require 'sunspot' Sunspot.setup(Post) do text :title, :body string :author_name end Sunspot.search(Post) do fulltext 'keyword' with(:author_name, 'John') end
Debug
Known issues
gotchaSunspot requires a running Solr server; it does not embed one.
fix
Ensure Solr is installed and configured (e.g., via sunspot_solr gem for development).
affects: >= 0
Upgrade
Version history
2.7.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
sunspot — gem install sunspot · libregistry