lib/esse/backend/index/create.rb in esse-0.0.3 vs lib/esse/backend/index/create.rb in esse-0.0.4
- old
+ new
@@ -37,10 +37,10 @@
# @return [Hash] the elasticsearch response
#
# @see http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime/
def create_index!(suffix: nil, **options)
options = DEFAULT_OPTIONS.merge(options)
- name = real_index_name(suffix)
+ name = build_real_index_name(suffix)
definition = [settings_hash, mappings_hash].reduce(&:merge)
if options[:alias] && name != index_name
definition[:aliases] = { index_name => {} }
end