---
title: "elasticsearch-model 8.0.0.pre Breaking Changes on RubyGems"
description: "What each elasticsearch-model release removed, renamed or changed: 22 breaking changes in 5 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/elasticsearch-model
last_updated: 2026-12-04
---

# 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

Latest version `8.0.1`. [Source repository](https://github.com/elasticsearch/elasticsearch-rails)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [7.0.0](#v-7-0-0) to [8.0.0.pre](#v-8-0-0-pre): 3 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [8.0.0.pre](#v-8-0-0-pre): 21 breaking changes in 4 versions.

## elasticsearch-model 8.0.0.pre breaking changes

elasticsearch-model 8.0.0.pre, released May 30, 2024: 3 breaking changes.

- **Removed**  

Testing for Ruby 2.x has been dropped, so code running on Ruby 2.x is no longer supported. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v8.0.0.pre)
- **Removed**  

Document types were deprecated and do not exist in 8.x, so all references to type must be removed from code. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v8.0.0.pre)
- **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](https://github.com/elastic/elasticsearch-rails/releases/tag/v8.0.0.pre)

## elasticsearch-model 7.0.0 breaking changes

elasticsearch-model 7.0.0, released August 21, 2019: 2 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](https://github.com/elastic/elasticsearch-rails/releases/tag/v7.0.0)
- **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](https://github.com/elastic/elasticsearch-rails/releases/tag/v7.0.0)

## elasticsearch-model 6.0.0 breaking changes

elasticsearch-model 6.0.0, released September 6, 2018: 11 breaking changes.

- **Removed** `Elasticsearch.Persistence.client`  

Clients must now be defined explicitly for each repository. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Removed** `Elasticsearch.Persistence.Model`  

The ActiveRecord-style Elasticsearch::Persistence::Model is removed; migrate to the Repository pattern. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `client`  

Settings on a Repository class and instances can no longer be reassigned after being set, so repository.client = ... fails. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `document_type`  

Settings on a Repository class and instances can no longer be reassigned after being set. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **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](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `index_name`  

Settings on a Repository class and instances can no longer be reassigned after being set. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `klass`  

Settings on a Repository class and instances can no longer be reassigned after being set. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `Repository.create_index!`  

create_index! must now be called on Repository instances rather than the class. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `Repository.delete_index!`  

delete_index! must now be called on Repository instances rather than the class. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)
- **Behavior changed** `Repository.index_exists?`  

index_exists? must now be called on Repository instances rather than the class. [github.com](https://github.com/elastic/elasticsearch-rails/releases/tag/v6.0.0)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## elasticsearch-model 5.0.0 breaking changes

elasticsearch-model 5.0.0, released April 7, 2017: 5 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](https://github.com/elasticsearch/elasticsearch-rails/blob/v5.0.0/CHANGELOG.md)
- **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](https://github.com/elasticsearch/elasticsearch-rails/blob/v5.0.0/CHANGELOG.md)
- **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](https://github.com/elasticsearch/elasticsearch-rails/blob/v5.0.0/CHANGELOG.md)
- **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](https://github.com/elasticsearch/elasticsearch-rails/blob/v5.0.0/CHANGELOG.md)
- **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](https://github.com/elasticsearch/elasticsearch-rails/blob/v5.0.0/CHANGELOG.md)

## elasticsearch-model 2.0.0 breaking changes

elasticsearch-model 2.0.0, released April 7, 2017: 1 breaking change.

- **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](https://github.com/elasticsearch/elasticsearch-rails/blob/v2.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
