Commit e04046916a2bfdaec7afb1e5292d4a7ca746cd74

Authored by Andrew
1 parent f50f9bd5

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 85 def search_data
86 86 data = respond_to?(:to_hash) ? to_hash : serializable_hash
87 87 data.delete("id")
  88 + data.delete("_id")
88 89 data
89 90 end unless method_defined?(:search_data)
90 91  
... ...