diff --git a/lib/elasticsearch.ex b/lib/elasticsearch.ex index 5d242a5..d51a403 100644 --- a/lib/elasticsearch.ex +++ b/lib/elasticsearch.ex @@ -65,7 +65,7 @@ defmodule Elasticsearch do "result" => "created" } """ - @spec put_document(Cluster.t(), Document.t(), index_name) :: map | no_return + @spec put_document!(Cluster.t(), Document.t(), index_name) :: map | no_return def put_document!(cluster, document, index) do put!(cluster, document_url(document, index), Document.encode(document)) end