Casecommons/pg_search
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 97
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5710
- days_rel: n/a
- days_push: 23
- n_releases_24m: 0
Adoption not part of the score
1575 stars · 381 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pg_search is a Ruby gem that adds ActiveRecord named scopes leveraging PostgreSQL's built-in full text search, including tsearch, trigram, and metaphone features. It also offers a multisearchable global index for searching across multiple models, letting Rails applications implement search without an external engine like Elasticsearch.
Use cases
- add full text search to a Rails ActiveRecord model
- search across multiple models with one global query
- implement trigram similarity search in PostgreSQL
- rank and weight search results across model columns
- avoid running Elasticsearch or Solr for app search
- add fuzzy name matching with metaphone or trigrams
When to choose
- your app uses Ruby on Rails or ActiveRecord with a PostgreSQL database
- you want search scoped naturally into ActiveRecord query chains
- you prefer keeping search inside PostgreSQL instead of operating a separate search server
- you need multi-model search via a single indexed table
When to avoid
- your database is MySQL, SQLite, or anything other than PostgreSQL
- your project is not Ruby or does not use ActiveRecord
- you need massive-scale distributed search, faceting, or advanced analytics better served by Elasticsearch or Solr
- you need language features or typo tolerance beyond what PostgreSQL full text search and trigrams provide
Facets
library · maturity active
search-engine orm database databases backend web-development ruby postgresql full-text-search activerecord rails trigram tsearch metaphone multisearch ruby-gem search
5 sources
- readme: https://github.com/Casecommons/pg_search · fetched 2026-08-28 · 57d64cbecb2b
- homepage: http://www.casebook.net · fetched 2026-08-29 · 3bf4fcfd963d
- site_page: https://www.casebook.net/about-us · fetched 2026-08-29 · 28e6e5f4f402
- site_page: https://www.casebook.net/pricing · fetched 2026-08-29 · c486fe8fd7ca
- site_page: https://gohub.casebook.net/subscription-tiers · fetched 2026-08-29 · c486fe8fd7ca
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Casecommons/pg_search | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="Casecommons/pg_search")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem