elasticsearch-model breaking changes
elasticsearch-model 8.0.0.pre (May 30, 2024) is its newest release with breaking changes, 3 of them. The first: Drops support for Ruby 2.x in elasticsearch-model 8.0.0.pre. Every breaking API change we have recorded in elasticsearch-model on RubyGems: 22 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.0.1. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 7.0.0 to 8.0.0.pre: 3 breaking changes in 1 version.
- From 2.0.0 to 8.0.0.pre: 21 breaking changes in 4 versions.
elasticsearch-model 8.0.0.pre breaking changes
- Removed
Testing for Ruby 2.x has been dropped, so code running on Ruby 2.x is no longer supported. github.com - Removed
Document types were deprecated and do not exist in 8.x, so all references to type must be removed from code. github.com - Configuration changed
Major version 8.x of this gem supports Elasticsearch 8.x and requires the elasticsearch dependency to be set to major version 8. github.com
elasticsearch-model 7.0.0 breaking changes
- Removed
The gem no longer supports Single Table Inheritance models. Models using STI must be changed to work without this support. github.com - Behavior changed
The gem now adds the document_type to the request only when it is defined. Code that relied on it being sent always may see different requests. github.com
elasticsearch-model 6.0.0 breaking changes
- Removed
Elasticsearch.Persistence.client
Clients must now be defined explicitly for each repository. github.com - Removed
Elasticsearch.Persistence.Model
The ActiveRecord-style Elasticsearch::Persistence::Model is removed; migrate to the Repository pattern. github.com - Behavior changed
client
Settings on a Repository class and instances can no longer be reassigned after being set, so repository.client = ... fails. github.com - Behavior changed
document_type
Settings on a Repository class and instances can no longer be reassigned after being set. github.com - Behavior changed
Elasticsearch.Persistence.Repository.DSL
You must include the Elasticsearch::Persistence::Repository::DSL mixin to define settings at the class level for a Repository. github.com - Behavior changed
index_name
Settings on a Repository class and instances can no longer be reassigned after being set. github.com - Behavior changed
klass
Settings on a Repository class and instances can no longer be reassigned after being set. github.com - Behavior changed
Repository.create_index!
create_index! must now be called on Repository instances rather than the class. github.com - Behavior changed
Repository.delete_index!
delete_index! must now be called on Repository instances rather than the class. github.com - Behavior changed
Repository.index_exists?
index_exists? must now be called on Repository instances rather than the class. github.com
And 1 more in this version. Sign up to see every change
elasticsearch-model 5.0.0 breaking changes
- Removed
find_in_batches
The find_in_batches method no longer uses the search_type=scan option. Code that passes or depends on scan search type must be changed. github.com - Behavior changed
Hash results are now wrapped by HashWrapper, a subclass of Hashie::Mash, instead of raw Hashie::Mash. Code that depends on the exact wrapper type may be affected. github.com - Behavior changed
The <String> data type now uses text rather than string in mappings. Existing mappings or queries that expect the string type may need updating. github.com - Behavior changed
Elasticsearch.Model.settings
The naming inheritance logic now reads from Elasticsearch::Model.settings. Index name inheritance may behave differently for existing models. github.com - Default changed
The default mapping type is now text instead of the previous default. Code that relies on the old default mapping must declare its mapping type explicitly. github.com
elasticsearch-model 2.0.0 breaking changes
- Behavior changed
Elasticsearch.Model.settings
The naming inheritance logic now uses Elasticsearch::Model.settings, so code relying on the previous index and doc type naming may name indices differently and should be checked. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.