# sunspot/sunspot

Solr-powered search for Ruby objects

Repository: https://github.com/sunspot/sunspot
Canonical: https://ross.abutalabs.com/products/sunspot
Homepage: http://sunspot.github.com/
Language: JavaScript
License: MIT
License Family: permissive
Topics: sunspot, solr, solr-search-engine, ruby
Last push: 2026-08-18T07:11:14+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 6533, "days_push": 15, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2979, forks 908 (observed 2026-08-28T04:07:33.091557+00:00)

## What it is
Sunspot is a Ruby library providing an expressive DSL for indexing Ruby objects into and searching them via the Apache Solr search engine, built on top of RSolr. It works with any ORM or non-database-backed objects and includes a Rails integration gem.

## Use cases
- add full-text search to a Rails app
- index ActiveRecord models into Solr
- run faceted, paginated searches over Ruby objects
- search non-database objects like files
- scope and sort search results by typed fields

## When to choose
- you use Ruby/Rails and want a clean DSL over Solr instead of raw RSolr queries
- you need full-text search with facets, scoping, and pagination over ORM objects

## When to avoid
- you don't want to operate a Solr server
- you prefer Elasticsearch/OpenSearch or database-native full-text search
- you need a lightweight embedded search index

## Facets
- artifact type: library
- maturity: active
- function: search-engine, database
- domain: web-development, databases
- platform: ruby, jvm
- tags: solr, ruby-gem, full-text-search, dsl, rails, orm-agnostic, indexing, faceting, search

## Member repositories
- sunspot/sunspot (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:33.091557+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:31:31.544435+00:00, confidence not recorded.
  - readme: https://github.com/sunspot/sunspot (fetched 2026-08-28T04:07:33.091557+00:00, sha 4a83de7ac48d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
