Commit 3df5803622e81b34d30dd325fb1c714fec223c19

Authored by Andrew
1 parent 5a077836

Fixed tests for ES5

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/index_options.rb
@@ -341,7 +341,7 @@ module Searchkick @@ -341,7 +341,7 @@ module Searchkick
341 341
342 if below60 342 if below60
343 all_enabled = all && (!options[:searchable] || options[:searchable].to_a.map(&:to_s).include?("_all")) 343 all_enabled = all && (!options[:searchable] || options[:searchable].to_a.map(&:to_s).include?("_all"))
344 - mappings[type][:_all] = all_enabled ? analyzed_field_options : {enabled: false} 344 + mappings[index_type][:_all] = all_enabled ? analyzed_field_options : {enabled: false}
345 end 345 end
346 346
347 mappings = mappings.deep_merge(options[:mappings] || {}) 347 mappings = mappings.deep_merge(options[:mappings] || {})