From b8603970d59ad408785c01567787a0078f3b88d0 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 26 Feb 2021 19:18:21 -0800 Subject: [PATCH] Added todo [skip ci] --- lib/searchkick/index.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/searchkick/index.rb b/lib/searchkick/index.rb index 4e112f5..b2eb62a 100644 --- a/lib/searchkick/index.rb +++ b/lib/searchkick/index.rb @@ -161,6 +161,7 @@ module Searchkick RecordData.new(self, record).document_type end + # TODO use like: [{_index: ..., _id: ...}] in Searchkick 5 def similar_record(record, **options) like_text = retrieve(record).to_hash .keep_if { |k, _| !options[:fields] || options[:fields].map(&:to_s).include?(k) } -- libgit2 0.21.0