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

Deleting twice a document raises exception. #28

Closed
rhnonose opened this issue May 3, 2018 · 0 comments
Closed

Deleting twice a document raises exception. #28

rhnonose opened this issue May 3, 2018 · 0 comments

Comments

@rhnonose
Copy link
Contributor

rhnonose commented May 3, 2018

The following exception is raised when deleting twice a document from an index:

** (FunctionClauseError) no function clause matching in Elasticsearch.Exception.build/2
    lib/elasticsearch/exception.ex:35: Elasticsearch.Exception.build(%{"_id" => "54", "_index" => "listings-1525371175", "_primary_term" => 1, "_seq_no" => 42, "_shards" => %{"failed" => 0, "successful" => 1, "total" => 2}, "_type" => "_doc", "_version" => 14, "result" => "not_found"}, nil)
    lib/elasticsearch/exception.ex:22: Elasticsearch.Exception.exception/1
    lib/elasticsearch.ex:389: Elasticsearch.format/1
    (re) lib/re_web/search/server.ex:57: ReWeb.Search.Server.handle_cast/2
    (stdlib) gen_server.erl:616: :gen_server.try_dispatch/4
    (stdlib) gen_server.erl:686: :gen_server.handle_msg/6
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

Seems like Elasticsearech.Exception.build/2 is not expecting "result" => "not_found" as a result.
Elasticsearch version: 6.2.4

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