我正在学习EalsticSearch教程(https://soumilshah1995.blogspot.com/2020/01/getting-started-with-elastic-search-and.html),但在尝试执行
es.indices.create(index='person', ignore=400)
res1 = es.index(index='person',doc_type='people', body=e1)
res2 = es.index(index='person',doc_type='people', body=e2)
print("RES1 : {}".format(res1))
print("RES2 : {}".format(res2))
我已经将我的Elasticsearch降级为elasticsearch==5.5.3
,但仍然遇到同样的错误。
能帮上忙就好了
1条答案
按热度按时间44u64gxh1#
我刚刚将Elasticsearch升级到最新版本,并将代码的格式更改为: