zoukankan      html  css  js  c++  java
  • elasearch 版本控制

    http://192.168.32.81:9200/library/books/8/
                                  GET
    
    {
    
        "_index": "library",
        "_type": "books",
        "_id": "8",
        "_version": 1,
        "found": true,
        "_source": {
            "titile": "Elasticsearch: The Defintive Guide",
            "name": {
                "first": "Zachary",
                "last": "Tong"
            },
            "publish_date": "2016-07-29",
            "price": "90.01"
        }
    
    }
    
    
    
    此时版本为  "_version": 1,
    
    
    http://192.168.32.81:9200/library/books/8/
    
    _update                               POST
    
    {
      "doc":{
          "price":"11.13"}
     }
    
    
    
    {
    
        "_index": "library",
        "_type": "books",
        "_id": "8",
        "_version": 2,
        "found": true,
        "_source": {
            "titile": "Elasticsearch: The Defintive Guide",
            "name": {
                "first": "Zachary",
                "last": "Tong"
            },
            "publish_date": "2016-07-29",
            "price": "11.13"
        }
    
    }
    
    此时版本变为2
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

  • 相关阅读:
    c++
    zjoi 力
    poj 3415
    [SDOI2014]旅行
    模板测试
    [WC2006]水管局长
    HDU5730
    [NOI2014]魔法森林
    [NOI2012]骑行川藏(未完成)
    [NOI2012]随机数生成器
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350452.html
Copyright © 2011-2022 走看看