ES基本用法 1.创建 Index,索引名为 news result = es.indices.create(index='news', ignore=400) 创建成功返回值:{ ‘acknowledged’: True, ‘shards_acknowledged’: True, ‘index’: ‘news’} 2. 删除 Index result = es.indices.delete(index='news', ignore=[400, 404])