除了delete以外,每个操作需要两个json字符串,语法如下:{"action":{"metadata"}}{"data"}bulk api对json字符串的语法有严格的要求,每个json串不能换行,只能放在一行,同时json串和json串之间必须有一个换行 有哪些类型的操作可以执行?1、dele Read More
posted @ 2018-03-04 21:46
秦先生的客栈
Views(161)
Comments(0)
Diggs(0)
1、不同index的批量查询GET /_mget{ "docs":[{ "_index":"test_index1", "_type":"test_type1", "_id":1 },{ "_index":"test_index2", "_type":"test_type1", "_id":1 }] Read More
posted @ 2018-03-04 21:45
秦先生的客栈
Views(159)
Comments(0)
Diggs(0)
1、内部脚本("script" : "ctx._source" 是内部定义好的获取_source数据的方式,不用改变)POST /index/type/id/_update{ "script" : "ctx._source.field=any_result"} 2、外部脚本定义一个外部脚本,名称为a Read More
posted @ 2018-03-04 21:43
秦先生的客栈
Views(3210)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号