Get document on a given index
alvnrapada opened this issue · 0 comments
alvnrapada commented
%{"error" => %{"code" => 404, "message" => "elastic: Error 404 (Not Found)", "status" => "Not Found"}}
So I'm having this error when trying to delete a not existing document on an index using delete_document
. I am expecting this function to return an error tuple: {:error, %Elasticsearch.Exception{...}
but It is not doing it on production (locally and on staging env it's working).
As a workaround, I am thinking I should check if a document is existing first before doing anything, does this package have a way to check that? like a get_document
function? Thanks!
And also how do you get the raw data of an index?