在写了这个代码之后,我得到了一个连接错误
from elasticsearch import Elasticsearch
es = Elasticsearch()
doc = {'author': 'kimchy','text': 'Elasticsearch: cool. bonsai cool.'}
res = es.index(index="test-index", doc_type='tweet', id=1, body=doc)
问题出在代码里还是我的电脑里?
我能做些什么来修复它
Tags:
卷曲:localhost:9200 to 检查弹性搜索是否在本地计算机上运行
我修好了。 问题是我运行代码时elasticsearch服务器没有运行
相关问题 更多 >
编程相关推荐