Elasticsearch upgrade to 1.2 (1.x) API Change-Two

Source: Internet
Author: User

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.
    1. Returns a specific value only if the query has a result, otherwise, returns only an empty object {} mapping,warmer,alias,setting 404
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.