gpt4 book ai didi

json - 导入json文件到elasticsearch

转载 作者:行者123 更新时间:2023-12-02 23:28:29 25 4
gpt4 key购买 nike

我用过了
curl -XPOST "http://localhost:9200/<my_index_name>" -d @<absolute_path_to_my_json_file>
然后当我尝试使用
curl -XGET "http://localhost:9200/<my_index_name>"
它只为我的json文件的第一行提供数据。 (还包括其他内容-设置,映射,别名等)。
但是为什么它不能加载整个json文件呢?
顺便说一句,我正在使用ES 2.4.0。如果必须使用大容量,语法是什么?

最佳答案

尝试使用这些
curl -XPUT“http://localhost:9200/ <my_index_name>” -d @<absolute_path_to_my_json_file>

关于json - 导入json文件到elasticsearch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39614200/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com