Chewy
Object document mapper for Elasticsearch in Ruby, built on the official elasticsearch-ruby client, with ActiveRecord integration.
Chewy is an object document mapper for Elasticsearch, written in Ruby and built on the official elasticsearch-ruby client. Index classes declare which model attributes become document fields, and the index is updated through bulk imports and atomic update strategies. Its chainable query DSL builds search requests against those indexes. The gem integrates with ActiveRecord and updates indexes on model changes through update_index callbacks, and the docs describe use without Rails. Installation is through the gem, and the Elasticsearch server runs separately.
Worth knowing
Chewy targets Elasticsearch, and the README says OpenSearch is not officially supported. Each major Chewy version follows a major Elasticsearch version, and minor versions may include breaking changes.
Sources
- 2026-10-28: links, Written in, License, GitHub stars
api.github.com/repos/toptal/chewy - 2026-10-28: links, Categories, Runtime, Minimum runtime, Install with
raw.githubusercontent.com/toptal/chewy/master/README.md - 2026-10-28: Maintainer, License model
raw.githubusercontent.com/toptal/chewy/master/LICENSE.txt - 2026-10-28: First release
rubygems.org/api/v1/versions/chewy.json - 2026-10-28: Current major version, Last release
api.github.com/repos/toptal/chewy/releases - 2026-10-28: Contributors
api.github.com/repos/toptal/chewy/contributors?per_page=1 - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/chewy