-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Document mapping type name can't start with '_' #52
Comments
@jhonathas Since Elasticsearch is removing mapping types in favor of We're running tests here against Can you share more details about how you're calling |
I just realized that even giving the command to install version 6.5.2 (mix elasticsearch.install vendor --version 6.5.2), he installed 5.1.1. I'm testing other versions. That may have been it. |
Now I ran the command again to install version 6.5.2 and it installed 6.5.1. I think the problem was really in the version. Now everything is working.
Thank you very much. There is something strange in the install command, but now it worked. |
When using put_document I received the following error:
** (MatchError) no match of right hand side value: {:error, %Elasticsearch.Exception{col: nil, line: nil, message: "Document mapping type name can't start with '_', found: [_doc]", query: nil, raw: %{"error" => %{"reason" => "Document mapping type name can't start with '_', found: [_doc]", "root_cause" => [%{"reason" => "Document mapping type name can't start with '_', found: [_doc]", "type" => "invalid_type_name_exception"}], "type" => "invalid_type_name_exception"}, "status" => 400}, status: 400, type: "invalid_type_name_exception"}}
My Elasticsearch version is 6.5.2.
I checked that by default document_url is using "_doc" and it seems that it will no longer be possible to start with "_" the type. Is there a way to solve without changing the code?
https://github.com/infinitered/elasticsearch-elixir/blob/5c7c2dd186217cb7d3c6252275e4ae47b193fe4b/lib/elasticsearch.ex#L127
The text was updated successfully, but these errors were encountered: