Commit b8603970d59ad408785c01567787a0078f3b88d0

Authored by Andrew Kane
1 parent 1add0f77

Added todo [skip ci]

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/searchkick/index.rb
... ... @@ -161,6 +161,7 @@ module Searchkick
161 161 RecordData.new(self, record).document_type
162 162 end
163 163  
  164 + # TODO use like: [{_index: ..., _id: ...}] in Searchkick 5
164 165 def similar_record(record, **options)
165 166 like_text = retrieve(record).to_hash
166 167 .keep_if { |k, _| !options[:fields] || options[:fields].map(&:to_s).include?(k) }
... ...