# pg_search

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


Source: https://findsoftware.frbit.cloud/pg-search-rb/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/Casecommons/pg_search
- docs: https://github.com/Casecommons/pg_search/blob/master/README.md

### Identity

- status: active
- maintainer: Casebook, PBC
- maintainerType: unknown
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: search
- hosting: ruby
- language: ruby
- runtime: ruby
- runtimeMin: ruby 3.3
- basedOn: rails

### Content

- contentStore: not applicable
- databases: postgres
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: gem

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 2
- latestReleaseDate: 2026-09-07

### Adoption

- githubStargazers: 1589
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 74
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 6913
- dependentPackages: 31

### Sources

- urls: https://github.com/Casecommons/pg_search (read 2026-10-28)
- urls: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- firstRelease: https://rubygems.org/api/v1/versions/pg_search.json (read 2026-10-28)
- maintainer: https://github.com/Casecommons/pg_search/blob/master/LICENSE (read 2026-10-28)
- license: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- language: https://github.com/Casecommons/pg_search (read 2026-10-28)
- category: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- basedOn: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- runtime: https://github.com/Casecommons/pg_search/blob/v2.4.0/pg_search.gemspec (read 2026-10-28)
- runtimeMin: https://github.com/Casecommons/pg_search/blob/v2.4.0/pg_search.gemspec (read 2026-10-28)
- databases: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- installMethod: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- installMethod: https://github.com/Casecommons/pg_search/blob/master/README.md (read 2026-10-28)
- currentMajor: https://rubygems.org/api/v1/gems/pg_search.json (read 2026-10-28)
- latestReleaseDate: https://rubygems.org/api/v1/gems/pg_search.json (read 2026-10-28)
- githubStargazers: https://github.com/Casecommons/pg_search (read 2026-10-28)
- contributors: https://api.github.com/repos/Casecommons/pg_search/contributors?per_page=1 (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/pg_search (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/pg_search (read 2026-10-28)

## Notes

pg_search is a Ruby gem that builds named scopes for Active Record models, taking advantage of PostgreSQL's full-text search. The [README](https://github.com/Casecommons/pg_search/blob/master/README.md) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
