We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 636570f commit c736fcbCopy full SHA for c736fcb
elasticsearch-model/lib/elasticsearch/model/indexing.rb
@@ -270,7 +270,7 @@ def create_index!(options={})
270
def index_exists?(options={})
271
target_index = options[:index] || self.index_name
272
273
- self.client.indices.exists(index: target_index) rescue false
+ self.client.indices.exists(index: target_index, ignore: 404)
274
end
275
276
# Deletes the index with corresponding name
0 commit comments