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

How to work for Elasticsearch 7.0? #486

Open
toreal opened this issue Oct 1, 2019 · 1 comment
Open

How to work for Elasticsearch 7.0? #486

toreal opened this issue Oct 1, 2019 · 1 comment

Comments

@toreal
Copy link

toreal commented Oct 1, 2019

In ElasticsSearch 7.0:
When I run
mix cmd --app snitch_core mix elasticsearch.build products --cluster Snitch.Tools.ElasticsearchCluster

That will produce following error:
`** (Mix) Index products could not be created.

%Elasticsearch.Exception{col: nil, line: nil, message: "The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true.", query: nil, raw: %{"error" => %{"reason" => "The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true.", "root_cause" => [%{"reason" => "The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true.", "type" => "illegal_argument_exception"}], "type" => "illegal_argument_exception"}, "status" => 400}, status: 400, type: "illegal_argument_exception"}

`

Where I can set 'include_type_name' to true?

@paulrusu8
Copy link

As include_type_name will be removed in elasticsearch 8.x, one should try to replace the whole structure. If the _doc type is removed, you get a postgrex error as postgresql demands a type declaration. I currently try to to add that in the postgres call, but I haven't found it yet.

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

2 participants