FindSoftware

pg_search

Ruby gem that adds PostgreSQL full-text search scopes to Active Record models.

pg_search is a Ruby gem that builds named scopes for Active Record models, taking advantage of PostgreSQL’s full-text search. The README is the reference for its setup and search options.

Rails projects get the gem’s rake tasks through a Railtie, which the README contrasts with non-Rails projects. The gem is installed with gem install or a Gemfile line, and it needs a PostgreSQL server. Some of its features need PostgreSQL extensions.

Casebook, PBC maintains the gem.

Worth knowing

The name is shared with ParadeDB’s pg_search, a PostgreSQL extension and a separate project with its own record. The gem has no project site of its own, so the repository is the reference.

Identity

Status
Active
Maintainer
Casebook, PBC4
First release
20113

Rendering and deploy

Install with
gem2

Releases

Current major version
26
Last release
2026-09-076

Adoption

GitHub stars
1,5891
Contributors
747
Dependent repositories
6,9138
Dependent packages
318

Why these figures do not compare

Sources

  1. 2026-10-28: links, Written in, GitHub stars
    github.com/Casecommons/pg_search
  2. 2026-10-28: links, License, Categories, Built on, Databases, Install with
    github.com/Casecommons/pg_search/blob/master/README.md
  3. 2026-10-28: First release
    rubygems.org/api/v1/versions/pg_search.json
  4. 2026-10-28: Maintainer
    github.com/Casecommons/pg_search/blob/master/LICENSE
  5. 2026-10-28: Runtime, Minimum runtime
    github.com/Casecommons/pg_search/blob/v2.4.0/pg_search.gemspec
  6. 2026-10-28: Current major version, Last release
    rubygems.org/api/v1/gems/pg_search.json
  7. 2026-10-28: Contributors
    api.github.com/repos/Casecommons/pg_search/contributors?per_page=1
  8. 2026-10-28: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/pg_search

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON