Commit 43484d84245eba19d11ecaed772b0a9f4dade015
1 parent
7e6d2bc7
Exists in
master
and in
21 other branches
A little whitespace never hurt anyone...
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/searchkick/similar.rb
1 | 1 | module Searchkick |
2 | 2 | module Similar |
3 | + | |
3 | 4 | def similar(options = {}) |
4 | 5 | like_text = index.retrieve(document_type, id).to_hash |
5 | 6 | .keep_if{|k,v| k[0] != "_" and (!options[:fields] or options[:fields].map(&:to_sym).include?(k)) } |
... | ... | @@ -28,5 +29,6 @@ module Searchkick |
28 | 29 | search = Tire::Search::Search.new(index_name, payload: payload) |
29 | 30 | Searchkick::Results.new(search.json, search.options) |
30 | 31 | end |
32 | + | |
31 | 33 | end |
32 | 34 | end | ... | ... |