aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2019-09-05 15:51:34 +0200
committerMax Magorsch <max@magorsch.de>2019-09-05 15:51:34 +0200
commitc62bd4d5644a77d1224f188d092f39e0438062ec (patch)
tree8dc0d218c0dae45add04b1324111318048fa1105 /Gemfile
parentAdded docker-compose.override.yml for development purposes (diff)
downloadpackages-5-c62bd4d5644a77d1224f188d092f39e0438062ec.tar.gz
packages-5-c62bd4d5644a77d1224f188d092f39e0438062ec.tar.bz2
packages-5-c62bd4d5644a77d1224f188d092f39e0438062ec.zip
Migrate to ES 7.3 and the repository pattern
Elasticsearch-persistence is used as the persistence layer for Ruby domain objects in Elasticsearch in this application. So far, the ActiveRecord pattern has been used here. However, this pattern has been deprecated as of version 6 of the gem and was removed in version 7. That's why the application has been migrated to use the repository pattern instead. For further information, please see: https://www.elastic.co/blog/activerecord-to-repository-changing- persistence-patterns-with-the-elasticsearch-rails-gem Note: The old Elasticsearch index won't be compatible with this version anymore. That's why a fresh index should be populated. Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index cdcddd2..fd7147d 100644
--- a/Gemfile
+++ b/Gemfile
@@ -23,8 +23,8 @@ gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 1.0', group: :doc
# packages stuff
-gem 'elasticsearch-rails', '~> 5.0'
-gem 'elasticsearch-persistence', '~> 5.0'
+gem 'elasticsearch-rails', '~> 7.0.0'
+gem 'elasticsearch-persistence', '~> 7.0.0'
gem 'nokogiri'
gem 'thin'