美文网首页
elasticsearch 一次性多次插入方法

elasticsearch 一次性多次插入方法

作者: 优宠熊 | 来源:发表于2022-02-16 16:43 被阅读0次

    _bulk

    POST /blank/account/_bulk
    {
        "index": {
            "_id": "1"
        }
    } 
    {
        "account_number": 1,
        "balance": 39225,
        "firstname": "Amber",
        "lastname": "Duke",
        "age": 32,
        "gender": "M",
        "address": "880 Holmes Lane",
        "employer": "Pyrami",
        "email": "amberduke@pyrami.com",
        "city": "Brogan",
        "state": "IL"
    } 
    {
        "index": {
            "_id": "6"
        }
    }
    {
        "account_number": 6,
        "balance": 5686,
        "firstname": "Hattie",
        "lastname": "Bond",
        "age": 36,
        "gender": "M",
        "address": "671 Bristol Street",
        "employer": "Netagy",
        "email": "hattiebond@netagy.com",
        "city": "Dante",
        "state": "TN"
    }
    

    相关文章

      网友评论

          本文标题:elasticsearch 一次性多次插入方法

          本文链接:https://www.haomeiwen.com/subject/jaddlrtx.html