elasticsearch-model 7.1.2.pre → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Rakefile +6 -4
  4. data/elasticsearch-model.gemspec +1 -2
  5. data/examples/activerecord_article.rb +1 -1
  6. data/examples/activerecord_associations.rb +2 -2
  7. data/examples/activerecord_custom_analyzer.rb +3 -3
  8. data/examples/activerecord_mapping_completion.rb +1 -1
  9. data/examples/activerecord_mapping_edge_ngram.rb +1 -1
  10. data/examples/couchbase_article.rb +1 -1
  11. data/examples/datamapper_article.rb +1 -1
  12. data/examples/mongoid_article.rb +1 -1
  13. data/examples/ohm_article.rb +1 -1
  14. data/examples/riak_article.rb +1 -1
  15. data/lib/elasticsearch/model.rb +3 -3
  16. data/lib/elasticsearch/model/adapter.rb +1 -1
  17. data/lib/elasticsearch/model/adapters/active_record.rb +1 -1
  18. data/lib/elasticsearch/model/adapters/default.rb +1 -1
  19. data/lib/elasticsearch/model/adapters/mongoid.rb +1 -1
  20. data/lib/elasticsearch/model/adapters/multiple.rb +1 -1
  21. data/lib/elasticsearch/model/callbacks.rb +1 -1
  22. data/lib/elasticsearch/model/client.rb +1 -6
  23. data/lib/elasticsearch/model/ext/active_record.rb +1 -1
  24. data/lib/elasticsearch/model/hash_wrapper.rb +1 -1
  25. data/lib/elasticsearch/model/importing.rb +1 -1
  26. data/lib/elasticsearch/model/indexing.rb +3 -3
  27. data/lib/elasticsearch/model/multimodel.rb +1 -1
  28. data/lib/elasticsearch/model/naming.rb +1 -1
  29. data/lib/elasticsearch/model/proxy.rb +1 -1
  30. data/lib/elasticsearch/model/response.rb +1 -1
  31. data/lib/elasticsearch/model/response/aggregations.rb +1 -1
  32. data/lib/elasticsearch/model/response/base.rb +1 -1
  33. data/lib/elasticsearch/model/response/pagination.rb +1 -1
  34. data/lib/elasticsearch/model/response/pagination/kaminari.rb +1 -1
  35. data/lib/elasticsearch/model/response/pagination/will_paginate.rb +1 -1
  36. data/lib/elasticsearch/model/response/records.rb +1 -1
  37. data/lib/elasticsearch/model/response/result.rb +1 -1
  38. data/lib/elasticsearch/model/response/results.rb +2 -1
  39. data/lib/elasticsearch/model/response/suggestions.rb +1 -1
  40. data/lib/elasticsearch/model/searching.rb +1 -1
  41. data/lib/elasticsearch/model/serializing.rb +1 -1
  42. data/lib/elasticsearch/model/version.rb +2 -2
  43. data/spec/elasticsearch/model/adapter_spec.rb +1 -1
  44. data/spec/elasticsearch/model/adapters/active_record/associations_spec.rb +1 -1
  45. data/spec/elasticsearch/model/adapters/active_record/basic_spec.rb +1 -1
  46. data/spec/elasticsearch/model/adapters/active_record/dynamic_index_name_spec.rb +1 -1
  47. data/spec/elasticsearch/model/adapters/active_record/import_spec.rb +1 -1
  48. data/spec/elasticsearch/model/adapters/active_record/multi_model_spec.rb +1 -1
  49. data/spec/elasticsearch/model/adapters/active_record/namespaced_model_spec.rb +1 -1
  50. data/spec/elasticsearch/model/adapters/active_record/pagination_spec.rb +1 -1
  51. data/spec/elasticsearch/model/adapters/active_record/parent_child_spec.rb +1 -1
  52. data/spec/elasticsearch/model/adapters/active_record/serialization_spec.rb +1 -1
  53. data/spec/elasticsearch/model/adapters/active_record_spec.rb +1 -1
  54. data/spec/elasticsearch/model/adapters/default_spec.rb +1 -1
  55. data/spec/elasticsearch/model/adapters/mongoid/basic_spec.rb +1 -1
  56. data/spec/elasticsearch/model/adapters/mongoid/multi_model_spec.rb +1 -1
  57. data/spec/elasticsearch/model/adapters/mongoid_spec.rb +1 -1
  58. data/spec/elasticsearch/model/adapters/multiple_spec.rb +1 -1
  59. data/spec/elasticsearch/model/callbacks_spec.rb +1 -1
  60. data/spec/elasticsearch/model/client_spec.rb +4 -4
  61. data/spec/elasticsearch/model/hash_wrapper_spec.rb +1 -1
  62. data/spec/elasticsearch/model/importing_spec.rb +1 -1
  63. data/spec/elasticsearch/model/indexing_spec.rb +17 -12
  64. data/spec/elasticsearch/model/module_spec.rb +2 -2
  65. data/spec/elasticsearch/model/multimodel_spec.rb +1 -1
  66. data/spec/elasticsearch/model/naming_spec.rb +1 -1
  67. data/spec/elasticsearch/model/proxy_spec.rb +1 -1
  68. data/spec/elasticsearch/model/response/aggregations_spec.rb +1 -1
  69. data/spec/elasticsearch/model/response/base_spec.rb +1 -1
  70. data/spec/elasticsearch/model/response/pagination/kaminari_spec.rb +1 -1
  71. data/spec/elasticsearch/model/response/pagination/will_paginate_spec.rb +1 -1
  72. data/spec/elasticsearch/model/response/records_spec.rb +1 -1
  73. data/spec/elasticsearch/model/response/response_spec.rb +1 -1
  74. data/spec/elasticsearch/model/response/result_spec.rb +1 -1
  75. data/spec/elasticsearch/model/response/results_spec.rb +13 -1
  76. data/spec/elasticsearch/model/searching_search_request_spec.rb +1 -1
  77. data/spec/elasticsearch/model/searching_spec.rb +1 -1
  78. data/spec/elasticsearch/model/serializing_spec.rb +1 -1
  79. data/spec/spec_helper.rb +1 -1
  80. data/spec/support/app.rb +2 -2
  81. data/spec/support/app/answer.rb +2 -2
  82. data/spec/support/app/article.rb +1 -1
  83. data/spec/support/app/article_for_pagination.rb +1 -1
  84. data/spec/support/app/article_no_type.rb +1 -1
  85. data/spec/support/app/article_with_custom_serialization.rb +1 -1
  86. data/spec/support/app/article_with_dynamic_index_name.rb +1 -1
  87. data/spec/support/app/author.rb +1 -1
  88. data/spec/support/app/authorship.rb +1 -1
  89. data/spec/support/app/category.rb +1 -1
  90. data/spec/support/app/comment.rb +1 -1
  91. data/spec/support/app/episode.rb +1 -1
  92. data/spec/support/app/image.rb +1 -1
  93. data/spec/support/app/import_article.rb +1 -1
  94. data/spec/support/app/mongoid_article.rb +1 -1
  95. data/spec/support/app/namespaced_book.rb +1 -1
  96. data/spec/support/app/parent_and_child_searchable.rb +1 -1
  97. data/spec/support/app/post.rb +1 -1
  98. data/spec/support/app/question.rb +1 -1
  99. data/spec/support/app/searchable.rb +1 -1
  100. data/spec/support/app/series.rb +1 -1
  101. metadata +5 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51e1e98703f1834d64dc969afcc75f107460220a9e213dc128dc5e1015be5a7b
4
- data.tar.gz: b44da631182388ef384dcab9f6e9d3626c40bf2b6272ef35c6f4857670320f6e
3
+ metadata.gz: 394cd3e2e2da51faa7db9c7843aa4b9e225199d3544491ccc2f6df35b5de721f
4
+ data.tar.gz: b8ce93762fe83c40b40b14b5dc0a2a59f936c2a9ee20647ed95c99cab108b3d6
5
5
  SHA512:
6
- metadata.gz: a627d5e725a0a3ffb0476873617e0f5d99f297ac1bad49554b69e1546f28bbc58a6cd3b3e54282d0127ed3da828f187f6dba4dc449bbe51ad8229b0b0167a276
7
- data.tar.gz: 35b7bc2cb6161fff40247e4cf76fd789ffbc12c4c2acfb1e8223b567ce799bcb12a9fd8857cf1bdbdb13999a981114b2e46f6054f5a27dfb1d487cb188f86860
6
+ metadata.gz: d3fc6c1744793d2066084410900a1e7af07fdf4efd420ce11f2fac368b2a72563510a83b3eeb99773a8b5554087af32d1b0b702e3c00df3cd18a99dea29f1952
7
+ data.tar.gz: 8b6a7603023357295b9b83aabf85bbc22cc04d527ebf9e1de48cd2de1212ff4c70060944ff964607bdb0e4a6b16c36b318c07793e9404bb8c889e940474f05fa
data/Gemfile CHANGED
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
data/Rakefile CHANGED
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -29,13 +29,14 @@ namespace :bundle do
29
29
  desc 'Install dependencies for all the Gemfiles in /gemfiles. Optionally define env variable RAILS_VERSIONS. E.g. RAILS_VERSIONS=3.0,5.0'
30
30
  task :install do
31
31
  unless defined?(JRUBY_VERSION)
32
- puts '-'*80
32
+ puts '-' * 80
33
33
  gemfiles = ENV['RAILS_VERSIONS'] ? ENV['RAILS_VERSIONS'].split(',').map { |v| "#{v}.gemfile"} : GEMFILES
34
34
  gemfiles.each do |gemfile|
35
- Bundler.with_clean_env do
35
+ puts "GEMFILE: #{gemfile}"
36
+ Bundler.with_unbundled_env do
36
37
  sh "bundle install --gemfile #{File.expand_path('../gemfiles/'+gemfile, __FILE__)}"
37
38
  end
38
- puts '-'*80
39
+ puts '-' * 80
39
40
  end
40
41
  end
41
42
  end
@@ -50,6 +51,7 @@ namespace :test do
50
51
  gemfiles = ENV['RAILS_VERSIONS'] ? ENV['RAILS_VERSIONS'].split(',').map {|v| "#{v}.gemfile"} : GEMFILES
51
52
  puts '-' * 80
52
53
  gemfiles.each do |gemfile|
54
+ puts "GEMFILE: #{gemfile}"
53
55
  sh "BUNDLE_GEMFILE='#{File.expand_path("../gemfiles/#{gemfile}", __FILE__)}' " +
54
56
  " bundle exec rspec"
55
57
  puts '-' * 80
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -48,7 +48,6 @@ Gem::Specification.new do |s|
48
48
  s.add_development_dependency 'activemodel', '> 3'
49
49
  s.add_development_dependency 'bundler'
50
50
  s.add_development_dependency 'cane'
51
- s.add_development_dependency 'elasticsearch-extensions'
52
51
  s.add_development_dependency 'kaminari'
53
52
  s.add_development_dependency 'minitest'
54
53
  s.add_development_dependency 'mocha'
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -81,7 +81,7 @@ end
81
81
  # ----- Elasticsearch client setup ----------------------------------------------------------------
82
82
 
83
83
  Elasticsearch::Model.client = Elasticsearch::Client.new log: true
84
- Elasticsearch::Model.client.transport.logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
84
+ Elasticsearch::Model.client.transport.transport.logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
85
85
 
86
86
  # ----- Search integration ------------------------------------------------------------------------
87
87
 
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -37,8 +37,8 @@ ActiveRecord::Schema.define(version: 1) do
37
37
  end
38
38
  end
39
39
 
40
- Elasticsearch::Model.client.transport.logger = ActiveSupport::Logger.new(STDOUT)
41
- Elasticsearch::Model.client.transport.logger.formatter = lambda { |s, d, p, m| "#{m.ansi(:faint)}\n" }
40
+ Elasticsearch::Model.client.transport.transport.logger = ActiveSupport::Logger.new(STDOUT)
41
+ Elasticsearch::Model.client.transport.transport.logger.formatter = lambda { |s, d, p, m| "#{m.ansi(:faint)}\n" }
42
42
 
43
43
  class Article < ActiveRecord::Base
44
44
  include Elasticsearch::Model
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -127,7 +127,7 @@ module Elasticsearch
127
127
  # @example Get the client
128
128
  #
129
129
  # Elasticsearch::Model.client
130
- # => #<Elasticsearch::Transport::Client:0x007f96a7d0d000 @transport=... >
130
+ # => #<Elasticsearch::Client:0x007f96a7d0d000... >
131
131
  #
132
132
  def client
133
133
  @client ||= Elasticsearch::Client.new
@@ -138,7 +138,7 @@ module Elasticsearch
138
138
  # @example Configure (set) the client for all models
139
139
  #
140
140
  # Elasticsearch::Model.client = Elasticsearch::Client.new host: 'http://localhost:9200', tracer: true
141
- # => #<Elasticsearch::Transport::Client:0x007f96a6dd0d80 @transport=... >
141
+ # => #<Elasticsearch::Client:0x007f96a6dd0d80... >
142
142
  #
143
143
  # @note You have to set the client before you call Elasticsearch methods on the model,
144
144
  # or set it directly on the model; see {Elasticsearch::Model::Client::ClassMethods#client}
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -17,13 +17,10 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module Model
20
-
21
20
  # Contains an `Elasticsearch::Client` instance
22
21
  #
23
22
  module Client
24
-
25
23
  module ClassMethods
26
-
27
24
  # Get the client for a specific model class
28
25
  #
29
26
  # @example Get the client for `Article` and perform API request
@@ -48,7 +45,6 @@ module Elasticsearch
48
45
  end
49
46
 
50
47
  module InstanceMethods
51
-
52
48
  # Get or set the client for a specific model instance
53
49
  #
54
50
  # @example Get the client for a specific record and perform API request
@@ -72,7 +68,6 @@ module Elasticsearch
72
68
  @client = client
73
69
  end
74
70
  end
75
-
76
71
  end
77
72
  end
78
73
  end
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -290,7 +290,7 @@ module Elasticsearch
290
290
  self.client.indices.delete index: target_index
291
291
  rescue Exception => e
292
292
  if e.class.to_s =~ /NotFound/ && options[:force]
293
- client.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.logger
293
+ client.transport.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.transport.logger
294
294
  nil
295
295
  else
296
296
  raise e
@@ -317,7 +317,7 @@ module Elasticsearch
317
317
  self.client.indices.refresh index: target_index
318
318
  rescue Exception => e
319
319
  if e.class.to_s =~ /NotFound/ && options[:force]
320
- client.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.logger
320
+ client.transport.transport.logger.debug("[!!!] Index does not exist (#{e.class})") if client.transport.transport.logger
321
321
  nil
322
322
  else
323
323
  raise e
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an