The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true
在给ES7手动创建索引的时候,会出现这个异常。代码如下PUTtwitter{"mappings":{"_doc":{"properties":{"type":{"type":"keyword"},"name":{"type":"text"},"user_name":{"type":"keyword"},"email":{"type":"keyword"},"content":{"type":"te