我的桌面上有一个名为cc的文件,其中包含此数据
document 1 = {"city":"Bangalore", "country":"India","date time":"2018,01,01,10,20,00"}
document 2 = {"city":"London", "country":"England","date time":"2018,01,02,03,12,00"}
document 3 = {"city":"Los Angeles", "country":"USA","date time":"2018,04,19,21,02,00"}
我想使用python客户端将这些文档索引到Elasticsearch中>
我的桌面上有一个名为cc的文件,其中包含此数据文档1 = {“ city”:“ Bangalore”,“ country”:“ India”,“ date time”:“ 2018,01,01,10,20, 00“}文档2 = {”城市“:”伦敦“,”国家“:”英国“,” ...
基本上,如果要插入批量数据以进行弹性搜索,则必须使用特定的json格式