python中的Elasticsearch操作

2019-12-06
阅读 1 分钟
1.7k
导入包 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_es01") 检查索引是否存在 es.indices.exists(index="python_es0...

一周极客分享2019年11月-第1周

2019-11-08
阅读 1 分钟
1.2k
本周极客分享周刊语录: 世界正在迅速电气化,轿车、卡车、摩托车、飞机都在变成电动设备。原因大致相同:运行更安静,维护需求减少,性能和效率更高,能源使用更加灵活。