es 存入失败错误

1  {'index': {'_index': 'bd_date', '_type': '20190128', '_id': '1bd3d0998b2744b29b8c19912285acdbd1998e97', 'status': 400, 'error': {'type': 'illegal_argument_exception', 'reason': 'Rejecting mapping update to [bd_date] as the final mapping would have more than 1 type: [20190128, 20190121]'},

在Elasticsearch 6.0.0或更高版本中创建的索引可能只包含单个映射类型。在具有多种映射类型的5.x中创建的索引将继续像以前一样在Elasticsearch 6.x中运行。映射类型将在Elasticsearch 7.0.0中完全删除。

来源

https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html

原文地址:https://www.cnblogs.com/ltn26/p/10329726.html