From 3df5803622e81b34d30dd325fb1c714fec223c19 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 2 Mar 2018 17:04:39 -0800 Subject: [PATCH] Fixed tests for ES5 --- lib/searchkick/index_options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/searchkick/index_options.rb b/lib/searchkick/index_options.rb index 88f582d..7c75b13 100644 --- a/lib/searchkick/index_options.rb +++ b/lib/searchkick/index_options.rb @@ -341,7 +341,7 @@ module Searchkick if below60 all_enabled = all && (!options[:searchable] || options[:searchable].to_a.map(&:to_s).include?("_all")) - mappings[type][:_all] = all_enabled ? analyzed_field_options : {enabled: false} + mappings[index_type][:_all] = all_enabled ? analyzed_field_options : {enabled: false} end mappings = mappings.deep_merge(options[:mappings] || {}) -- libgit2 0.21.0