摘要: http://www.cnblogs.com/bonelee/p/6078947.html 里分析了ES bulk实现,其中路由代码: ShardId shardId = clusterService.operationRouting().indexShards(clusterState, conc 阅读全文
posted @ 2016-11-18 19:54 bonelee 阅读(2342) 评论(0) 推荐(0) 编辑
摘要: 对bulk request的处理流程: 1、遍历所有的request,对其做一些加工,主要包括:获取routing(如果mapping里有的话)、指定的timestamp(如果没有带timestamp会使用当前时间),如果没有指定id字段,在action.bulk.action.allow_id_g 阅读全文
posted @ 2016-11-18 19:51 bonelee 阅读(2285) 评论(0) 推荐(0) 编辑