Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
This minor release primarily added a deprecation warning if Single Table Inheritance is used. It also contains the following changes:
respond_to_missing?
to silence Ruby 2.4 warnings (#838)This pre version supports Elasticsearch server version 7.0.0. It is not recommended for production use. Please try it in your testing environments and open any issues in the GitHub repository.
respond_to_missing?
to silence Ruby 2.4 warnings (#838)This version has many smaller changes and two major changes: the deprecation of the ActiveRecord Persistence pattern and a refactor of the Repository pattern. This version includes all the changes in 6.0.0.pre in addition to those listed below.
Elasticsearch::Persistence::Repository::DSL
mixin if you'd like to define settings at the class-level for a Repository.repository.client = ....
. This is true for the following settings:
document_type
index_name
klass
client
create_index!
delete_index!
refresh_index!
index_exists?
Elasticsearch::Persistence
is removed. This setting was previously mutable and led to unexpected behavior for repositories.Here is a full list of changes:
This is a pre-release of version 6.0.0. Please try out the gem in your testing environment and report any issues in the GitHub project.
master
branch to 6.0.0.alpha1
Asynchronous Callbacks
examplechanges
method name in Indexing
to changes_to_save
for compatibility with Rails 5.1Indexing
to work with older Rails versions5.x
Sample data with releases from the Dischord label scraped from Discogs.