标签:des style http color java os 使用 io ar
curl -XGET http://localhost:9200/_cluster/state/nodes?pretty=1
查看节点统计信息:
二、索引相关api
curl -XPUT http://localhost:9200/{indices}/_mapping/{type} curl -XPUT http://localhost:9200/{indices}/_alias/{name} curl -XPUT http://localhost:9200/{indices}/_warmer/{name} curl -XGET http://localhost:9200/{indices}/_mapping/{types} curl -XGET http://localhost:9200/{indices}/_alias/{names} curl -XGET http://localhost:9200/{indices}/_settings/{names} curl -XGET http://localhost:9200/{indices}/_warmer/{names} curl -XDELETE http://localhost:9200/{indices}/_mapping/{types} curl -XDELETE http://localhost:9200/{indices}/_alias/{names} curl -XDELETE http://localhost:9200/{indices}/_warmer/{names}
{
"my_index": {
"mappings": {
"my_type": {...}
}
}
}
上面是 get_mapping API返回的结果。
In the future we will also provide plural versions to allow putting multiple mappings etc in a single request.
这句话的意思,好像是在说,可以在一个请求中设置两个版本的mappings。
Elasticsearch升级到1.2(1.x)API的变化-二
标签:des style http color java os 使用 io ar
原文地址:http://blog.csdn.net/oatye40020/article/details/38761363