python中的ElasticSearch索引

erhoui1w  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(1)|浏览(648)

我想把我的数据从字典推到elasticsearch。如何为同一个对象创建索引?
我也尝试在linux服务器curl-xput上使用curl命令http://localhost:9200/osint/'-d'索引:碎片数:5副本数:2'但这也没有帮助
我写了这篇文章,但无法通过带有索引的kibanahud获取数据 osint :

es.index(index='osint', doc_type='tweet', body=dict, id = 1)

es.indices.refresh(index='osint')

你能帮忙吗

woobm2wo

woobm2wo1#

你试过了吗

curl -XGET http://localhost:9200/<index>/_mapping?pretty

我想你错过了这个

相关问题