lib/searchkick/index_options.rb in searchkick-4.0.1 vs lib/searchkick/index_options.rb in searchkick-4.0.2

- old
+ new

@@ -11,20 +11,19 @@ if below70 index_type = options[:_type] index_type = index_type.call if index_type.respond_to?(:call) end - custom_mapping = options[:mapping] || {} + custom_mapping = options[:mappings] || {} if below70 && custom_mapping.keys.map(&:to_sym).include?(:properties) # add type custom_mapping = {index_type => custom_mapping} end if options[:mappings] && !options[:merge_mappings] settings = options[:settings] || {} mappings = custom_mapping else - default_type = "text" default_analyzer = :searchkick_index keyword_mapping = {type: "keyword"} index_true_value = true