You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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.
`
Where I can set 'include_type_name' to true?
The text was updated successfully, but these errors were encountered: