# Elasticsearch Rails

Ruby gem of Elasticsearch integrations for Ruby on Rails applications, maintained by Elastic.


Source: https://findsoftware.frbit.cloud/elasticsearch-rails/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/elastic/elasticsearch-rails
- docs: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby_on_rails.html

### Identity

- status: active
- maintainer: Elasticsearch B.V.
- maintainerType: company
- parent: unknown
- firstRelease: 2013
- hqCountry: unknown

### Kind

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

### Content

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

### Rendering and deploy

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

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 8
- latestReleaseDate: 2025-09-01

### Adoption

- githubStargazers: 3083
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 99
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2495
- dependentPackages: 22

### Sources

- urls: https://api.github.com/repos/elastic/elasticsearch-rails (read 2026-10-28)
- urls: https://rubygems.org/api/v1/gems/elasticsearch-rails.json (read 2026-10-28)
- maintainer: https://raw.githubusercontent.com/elastic/elasticsearch-rails/main/README.md (read 2026-10-28)
- firstRelease: https://rubygems.org/api/v1/versions/elasticsearch-rails.json (read 2026-10-28)
- category: https://raw.githubusercontent.com/elastic/elasticsearch-rails/main/README.md (read 2026-10-28)
- basedOn: https://raw.githubusercontent.com/elastic/elasticsearch-rails/main/README.md (read 2026-10-28)
- language: https://api.github.com/repos/elastic/elasticsearch-rails (read 2026-10-28)
- runtime: https://raw.githubusercontent.com/elastic/elasticsearch-rails/v8.0.1/elasticsearch-rails/elasticsearch-rails.gemspec (read 2026-10-28)
- runtimeMin: https://raw.githubusercontent.com/elastic/elasticsearch-rails/v8.0.1/elasticsearch-rails/elasticsearch-rails.gemspec (read 2026-10-28)
- license: https://raw.githubusercontent.com/elastic/elasticsearch-rails/main/README.md (read 2026-10-28)
- installMethod: https://raw.githubusercontent.com/elastic/elasticsearch-rails/main/README.md (read 2026-10-28)
- currentMajor: https://api.github.com/repos/elastic/elasticsearch-rails/releases/tags/v8.0.1 (read 2026-10-28)
- latestReleaseDate: https://api.github.com/repos/elastic/elasticsearch-rails/releases/tags/v8.0.1 (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/elastic/elasticsearch-rails (read 2026-10-28)
- contributors: https://api.github.com/repos/elastic/elasticsearch-rails/contributors?per_page=1 (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/elasticsearch-rails (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/elasticsearch-rails (read 2026-10-28)

## Notes

Elasticsearch Rails is a Ruby gem that adds Elasticsearch integrations to Rails applications. Its features include an ActiveModel integration with adapters for ActiveRecord and Mongoid, convenience model methods for search and import, wrappers that return search results as records, pagination support for Kaminari and WillPaginate, and rake tasks for importing data. The README also lists templates that generate an example Rails application.

The repository holds three gems: elasticsearch-model, elasticsearch-persistence and elasticsearch-rails. The gem described here is elasticsearch-rails, and it is installed with gem install. The Elasticsearch client itself comes from the separate elasticsearch-ruby project. The example application template needs a running Elasticsearch cluster.

## Worth knowing

The gem follows the Elasticsearch major version, so its version 8 line targets Elasticsearch 8.x. The README points to Elastic's support lifecycle page to check which releases are still supported.

---

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
