zoukankan      html  css  js  c++  java
  • mget 同时获取

    mget 同时获取:
    
    
    http://192.168.32.81:9200/
    
    _mget                        POST
    
    
    {
       "docs" :[
      { 
       "_index":"library",
       "_type" :"books",
       "_id": 1
       },
        { 
       "_index":"library",
       "_type" :"books",
       "_id": 2
       },
      { 
       "_index":"library",
       "_type" :"books",
       "_id": 3
       }
     ]
    }
    
    
    
    {
    
        "docs": [
            {
                "_index": "library",
                "_type": "books",
                "_id": "1",
                "_version": 5,
                "found": true,
                "_source": {
                    "titile": "Elasticsearch: The Defintive Guide",
                    "name": {
                        "first": "Zachary",
                        "last": "Tong"
                    },
                    "publish_date": "2016-07-29",
                    "price": 10
                }
            }
            ,
            {
                "_index": "library",
                "_type": "books",
                "_id": "2",
                "_version": 1,
                "found": true,
                "_source": {
                    "titile": "Elasticsearch: The Defintive Guide",
                    "name": {
                        "first": "Zachary",
                        "last": "Tong"
                    },
                    "publish_date": "2016-07-29",
                    "price": "99.99"
                }
            }
            ,
            {
                "_index": "library",
                "_type": "books",
                "_id": "3",
                "found": false
            }
        ]
    
    }
    
    
    /************************
    
    http://192.168.32.81:9200/library/books/
    
    _mget                 POST
    
    {
     "ids":["1","2"]
    }
    
    
    
    
    
    

  • 相关阅读:
    nginx
    同步和异步
    什么是ACID
    关系型数据库特点小结
    js 简单小知识
    join 和 left join 和 right join的区别?
    mysql中having和where区别?
    include和require区别
    什么是脏读,不可重复,幻读?
    Mysql常见面试题
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199471.html
Copyright © 2011-2022 走看看