Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get document on a given index #96

Open
alvnrapada opened this issue Jun 8, 2021 · 0 comments
Open

Get document on a given index #96

alvnrapada opened this issue Jun 8, 2021 · 0 comments

Comments

@alvnrapada
Copy link

alvnrapada commented Jun 8, 2021

%{"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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant