I. Changes in statistical information-related ordersFor cluster state Cluster_state, node information Nodes_info, node statistics nodes_stats and index Information indices_stats command format are unified, such as viewing the cluster information using command:
Curl-xget Http://localhost:9200/_cluster/state/nodes?pretty=1
To view node statistics:
Curl-xget http://localhost:9200/_nodes/stats?pretty=1 Cluster statistical information Curl-xget Http://localhost:9200/_cluster/stats?pretty=1
Second, index-related API
The order of mapping, alias, settings, and warmer related commands and parameters is adjusted. The new order and format are as follows:
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}
where {Indices},{type} and {name} can be any of the following:
- _all , * or empty, these 3 values mean the same, representing all possible values
- Wildcard characters, such as "test*"
- Comma-delimited list, for example : index_1,test_*
The only exception is the delete command, which does not receive an empty value. If you want to delete anything, you must specify it explicitly. Similarly, the results returned by the GET command are also unified.
- Returns a specific value only if the query has a result, otherwise, returns only an empty object {} mapping,warmer,alias,setting 404
- If the result is queried, the result always contains the index name, followed by the section, then the element name. For example:
{
" My_index ": {
"mappings": {
" My_type ": {...}
}
}
above is get_mapping the results returned by the API.
In the future we'll also provide plural versions to allow putting multiple mappings etc in a single request.
It's like saying that you can set two versions in a request. Mappings .
Elasticsearch upgrade to 1.2 (1.x) API Change-Two