摘要: 1、导入并生成ES对象 from elasticsearch import Elasticsearch es = Elasticsearch(['http://127.0.0.1:9200'], http_auth=('用户名', '密码')) 2、为指定索引添加字段 new_fields = { 阅读全文
posted @ 2025-08-04 09:45 wellplayed 阅读(213) 评论(0) 推荐(0)