lib/meilisearch-rails.rb in meilisearch-rails-0.12.0 vs lib/meilisearch-rails.rb in meilisearch-rails-0.14.0
- old
+ new
@@ -65,10 +65,11 @@
attributes_to_crop
crop_length
pagination
faceting
typo_tolerance
+ proximity_precision
].freeze
CAMELIZE_OPTIONS = %i[pagination faceting typo_tolerance].freeze
OPTIONS.each do |option|
@@ -574,10 +575,10 @@
raise ArgumentError, 'Cannot index a record without a primary key' if primary_key.blank?
ms_configurations.filter_map do |options, settings|
{
synchronous: synchronous || options[:synchronous],
- index_uid: options[:index_uid],
+ index_uid: ms_index_uid(options),
primary_key: primary_key
}.with_indifferent_access unless ms_indexing_disabled?(options)
end
end