Commit e04046916a2bfdaec7afb1e5292d4a7ca746cd74
1 parent
f50f9bd5
Exists in
master
and in
19 other branches
Remove _id too [skip ci]
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/searchkick/model.rb
@@ -85,6 +85,7 @@ module Searchkick | @@ -85,6 +85,7 @@ module Searchkick | ||
85 | def search_data | 85 | def search_data |
86 | data = respond_to?(:to_hash) ? to_hash : serializable_hash | 86 | data = respond_to?(:to_hash) ? to_hash : serializable_hash |
87 | data.delete("id") | 87 | data.delete("id") |
88 | + data.delete("_id") | ||
88 | data | 89 | data |
89 | end unless method_defined?(:search_data) | 90 | end unless method_defined?(:search_data) |
90 | 91 |