elastics-client 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -678,6 +678,23 @@ module Elastics
678
678
  super
679
679
  end
680
680
 
681
+ # ########## Elastics.put_index_settings ##########
682
+ # ------------------
683
+ # Elastics::Template
684
+ # ---
685
+ # put_index_settings:
686
+ # - PUT
687
+ # - /<<index>>/_settings
688
+ #
689
+ #
690
+ # Usage:
691
+ # Elastics.put_index_settings :index => "elastics_test_index"
692
+ #
693
+ def Elastics.put_index_settings(*vars)
694
+ ## this is a stub, used for reference
695
+ super
696
+ end
697
+
681
698
  # ########## Elastics.get_index_mapping ##########
682
699
  # --------------
683
700
  # Elastics::Template
@@ -106,6 +106,11 @@ get_index_settings: &get_index_settings
106
106
  # alias
107
107
  get_settings: *get_index_settings
108
108
 
109
+ # you should pass the settings structure as the :data variable
110
+ put_index_settings:
111
+ - PUT
112
+ - /<<index>>/_settings
113
+
109
114
 
110
115
 
111
116
  #-----------------------------------------------------------------------------#
@@ -35,16 +35,14 @@ module Elastics
35
35
  def initialize(total_count, batch_size=nil, prefix_message=nil)
36
36
  @successful_count = 0
37
37
  @failed_count = 0
38
- @pbar = ::ProgressBar.create(:title => title(:ok),
39
- :total => total_count,
40
- :progress_mark => (Dye.color? ? ' ' : '|'),
41
- :format => ('%t%c/%C %p%% %E %b' + dye(:background, '%i', '%i')))
42
- @pbar.clear
43
38
  puts
44
39
  message = "#{prefix_message}Processing #{total_count} documents"
45
40
  message << " in batches of #{batch_size}" unless batch_size.nil?
46
41
  Prompter.say_log message
47
- @pbar.start
42
+ @pbar = ::ProgressBar.create(:title => title(:ok),
43
+ :total => total_count,
44
+ :progress_mark => (Dye.color? ? ' ' : '|'),
45
+ :format => ('%t%c/%C %p%% %E %b' + dye(:background, '%i', '%i')))
48
46
  end
49
47
 
50
48
  def process_result(result, inc)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastics-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-15 00:00:00.000000000 Z
12
+ date: 2013-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json