esse 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46abc9b3347ca852c1f270910e21582c8f17186b554d1a7f667bafee8f84a152
4
- data.tar.gz: baf633b7147e8cf48c704c15fc5f4a2a52c8d08f671f05e6c5577f3d92ef2901
3
+ metadata.gz: f75c383d56ec641fd08ee1d8158dc6bb90bb26ca04a1e3d74862ce6b4cbb3aa5
4
+ data.tar.gz: 424c8abb67bfdaf9fc80b24f19f5764d67ad887cdb439bbc287f55cc52614820
5
5
  SHA512:
6
- metadata.gz: 129c4475225760da6620d990a1065795d6c7f1248b01745105715b8d01f4c11c500b253701f573eac5071abeeeaed83e6be1c5bf8f22b5f2fab819587c96c595
7
- data.tar.gz: 93f66e7d04a3857c3daf9b6daaa72a39e6a3027b80e464e53a97325f74666324451f93a914d9daa31864a77a93c7fb37735e12395536f395133135042a752f21
6
+ metadata.gz: a915c64e5cc8823fe97c8ea6a3458cf8faed48bfd35ee8e7a527cb44170181bb6e4dddd68ec50d509fee59cbacf7bc5a34790fd2aa9d2c7cd714aab36f110648
7
+ data.tar.gz: 8b1e442b421b134a8f264a5a35cdfa2751a167795177b79e627659c423184225d23b5ef58e257c9e0bf2409a224e8d03d35d8377fe8304b579574287bf4f8a2a
@@ -16,6 +16,7 @@ module Esse
16
16
  DESC
17
17
  option :suffix, type: :string, default: nil, aliases: '-s', desc: 'Suffix to append to index name'
18
18
  option :import, type: :boolean, default: true, desc: 'Import documents before point alias to the new index'
19
+ option :optimize, type: :boolean, default: true, desc: 'Optimize index before import documents by disabling refresh_interval and setting number_of_replicas to 0'
19
20
  def reset(*index_classes)
20
21
  require_relative 'index/reset'
21
22
  Reset.new(indices: index_classes, **options.to_h.transform_keys(&:to_sym)).run
@@ -76,6 +76,7 @@ module Esse
76
76
 
77
77
  if optimize && number_of_replicas != new_number_of_replicas || refresh_interval != new_refresh_interval
78
78
  update_settings(suffix: suffix)
79
+ refresh(suffix: suffix)
79
80
  end
80
81
 
81
82
  update_aliases(suffix: suffix)
data/lib/esse/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esse
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos G. Zimmermann