python使用es的例子(記錄下)

from elasticsearch import Elasticsearch esUrl = 'http://localhost:9200' es = Elasticsearch(esUrl) index = 'users' # 建立索引 if (es.indices.exists(index) == False): mapping = { 'dynamic':
相關文章
相關標籤/搜索