ElasticSearch
依我去
这个作者很懒,什么都没留下…
展开
-
python导出ES数据
from elasticsearch import Elasticsearchfrom elasticsearch import helpersimport openpyxlclass EsToExcel(object): def __init__(self, es_host, index, type, file_name): """ :param es_host: es连接地址 例: 127.0.0.1:9200 :param index:原创 2021-12-10 11:13:40 · 752 阅读 · 0 评论 -
Python操作ElasticSearch批量增加查询
ElasticSearch Python版创建索引批量导入查询创建索引ES版本为7.Xfrom elasticsearch import Elasticsearches = Elasticsearch()def deleteInices(my_index): if True and es.indices.exists(my_index): # 确认删除再改为True print("删除之前存在的") es.indices.delete(index=my原创 2020-08-18 09:44:51 · 781 阅读 · 0 评论