lib/estella/helpers.rb in estella-6.0.0 vs lib/estella/helpers.rb in estella-7.0.0

- old
+ new

@@ -61,11 +61,11 @@ find(batch_of_ids).map(&:es_transform) end def bulk_index(batch_of_ids) create_index! unless index_exists? - __elasticsearch__.client.bulk index: index_name, type: document_type, body: batch_to_bulk(batch_of_ids) + __elasticsearch__.client.bulk index: index_name, body: batch_to_bulk(batch_of_ids) end # @return true if the index exists def index_exists? __elasticsearch__.client.indices.exists index: index_name @@ -96,10 +96,10 @@ def refresh_index! __elasticsearch__.refresh_index! end def es_delete_document(id) - __elasticsearch__.client.delete type: document_type, id: id, index: index_name + __elasticsearch__.client.delete id: id, index: index_name end end end end