因为最近有需求通过特template来创建索引,之前同锅curl实现过,es版本是2.3.5
但是现在要在代码方面实现,愣是没找到相应的java api哪位大神用了能否说明下,谢谢
PUT _template/item
{
"template": "*-item",
"settings": {
"number_of_shards": 5,
"number_of_replicas": 1,
"routing.allocation.include.box_type": "hot",
"routing.allocation.total_shards_per_node": 2
}
}
但是现在要在代码方面实现,愣是没找到相应的java api哪位大神用了能否说明下,谢谢
1 个回复
zqc0512 - andy zhou
赞同来自: