elastic/elasticsearch-rails
Elasticsearch integrations for ActiveModel/Record and Ruby on Rails observed · 2026-08-28
Health v2 · maintenance only
45/100
- Activity 46
- Release rhythm 13
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4681
- days_rel: 366
- days_push: 329
- n_releases_24m: 1
Adoption not part of the score
3084 stars · 797 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Official Elasticsearch integrations for Ruby on Rails, provided as three gems: elasticsearch-model (ActiveModel/ActiveRecord/Mongoid search integration), elasticsearch-persistence (repository pattern persistence), and elasticsearch-rails (Rails conveniences like rake import tasks and instrumentation). It lets Rails models be indexed into and searched via Elasticsearch 8.x.
Use cases
- add full-text search to Rails ActiveRecord models with Elasticsearch
- index and sync ActiveRecord records into Elasticsearch
- search results returned as ActiveRecord relations with pagination
- persist plain Ruby objects in Elasticsearch via repository pattern
- rake tasks to bulk import model data into Elasticsearch
- integrate Elasticsearch with Mongoid models
When to choose
- you have a Ruby on Rails or Ruby app using ActiveRecord or Mongoid and want Elasticsearch-backed search
- you want model callbacks, mappings, and import tasks wired up automatically
- you want search results as enumerable records with Kaminari/WillPaginate pagination
When to avoid
- your project is not Ruby/Rails
- you use OpenSearch or a non-Elasticsearch search engine
- you only need a raw Elasticsearch client without model integration (use elasticsearch-ruby instead)
Facets
library · maturity active
search-engine orm database-driver web-development databases backend ruby jvm elasticsearch rails activerecord activemodel ruby-gem full-text-search search
1 source
- readme: https://github.com/elastic/elasticsearch-rails · fetched 2026-08-28 · f58ce02c3783
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| elastic/elasticsearch-rails | main | 45 |
For agents
markdown · JSON · MCP: product_card(name="elastic/elasticsearch-rails")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem