python中的弹性搜索索引

2024-06-16 11:47:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我想把我的数据从字典推到Elasticsearch。我怎样才能为它创建索引?在

我也尝试在Linux服务器上使用Curl命令 卷曲-XPUT'http://localhost:9200/osint/'-d' 索引: 碎片数量:5 _副本数量:2 ' 但这也帮不上忙

我写了这篇文章,但无法通过索引为osint的KibanaHud获取数据:

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

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

你能帮忙吗


Tags: 数据命令服务器localhosthttp数量index字典