python中的Elasticsearch操作汇总
这篇文章主要介绍了python中的Elasticsearch操作汇总,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下 导入包 from elasticsearch import Elasticsearch 本地连接 es = Elasticsearch(['127.0.0.1:9200']) 创建索引 es.indices.create(index=python_es01,ignore=400) ingore=400 ingore是忽略的意思,400是未找到 删除索引 es.indices.delete(index=python_
下载地址
用户评论