【问题标题】:how to load .json file in elasticsearch如何在elasticsearch中加载.json文件 【发布时间】:2017-07-15 09:46:03 【问题描述】: 我有一个 .json 文件,我想加载到弹性搜索中进行过滤。 【问题讨论】: Import/Index a JSON file into Elasticsearch 的可能重复项 这一定有帮助:stackoverflow.com/a/65213529/3357884 标签: json elasticsearch 【解决方案1】: 一个简单的开始方法是使用curl。如果你有一个带有 single 文档的 JSON 文件,你可以像这样索引它: $ curl -XPOST "http://localhost:9200/example/default" -d@file.json example 是索引名称,default 是文档 type。 有关更多信息,请查看文档: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html 【讨论】: