From 2d263f069d052aa0912895c7f70b9bc04128e2cc Mon Sep 17 00:00:00 2001 From: inomoto Date: Wed, 2 Oct 2024 11:58:46 +0900 Subject: [PATCH] Added support for nested parameters to model_options --- lib/searchkick/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/searchkick/model.rb b/lib/searchkick/model.rb index ed13e28b..42da02ae 100644 --- a/lib/searchkick/model.rb +++ b/lib/searchkick/model.rb @@ -1,7 +1,7 @@ module Searchkick module Model def searchkick(**options) - options = Searchkick.model_options.merge(options) + options = Searchkick.model_options.deep_merge(options) unknown_keywords = options.keys - [:_all, :_type, :batch_size, :callbacks, :case_sensitive, :conversions, :deep_paging, :default_fields, :filterable, :geo_shape, :highlight, :ignore_above, :index_name, :index_prefix, :inheritance, :knn, :language,