<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] # 簡介 為了能更快的同時檢索多個文檔 mget API參數是一個docs數組,數組的每個節點定義一個文檔的`_index,_type,_id`元數據 ![](https://img.kancloud.cn/cd/51/cd516b1313a2d795b73d5c6bd8be413e_278x484.png) 我們先創建出一些數據,然后我們看下 ~~~ GET /library/books/1 GET /library/books/2 GET /library/books/3 GET /shakespeare/line/1 GET /shakespeare/line/2 GET /shakespeare/line/3 ~~~ # 一起獲取下 ~~~ # 數組[] GET /_mget { "docs": [ { "_index": "library", "_type": "books", "_id": 1 }, { "_index": "library", "_type": "books", "_id": 2 }, { "_index": "library", "_type": "books", "_id": 3 }, { "_index": "shakespeare", "_type": "line", "_id": 1 }, { "_index": "shakespeare", "_type": "line", "_id": 2 }, { "_index": "shakespeare", "_type": "line", "_id": 3 } ] } ~~~ # 可以指定你想獲取的字段 ~~~ # 也可以指定_source字段,獲取你想要的 GET /_mget { "docs": [ { "_index": "library", "_type": "books", "_id": 1, "_source": "title" }, { "_index": "library", "_type": "books", "_id": 2, "_source": "name" }, { "_index": "library", "_type": "books", "_id": 3, "_source": "price" }, { "_index": "shakespeare", "_type": "line", "_id": 1, "_source": "name" }, { "_index": "shakespeare", "_type": "line", "_id": 2, "_source": ["name","password"] }, { "_index": "shakespeare", "_type": "line", "_id": 3, "_source": "password" } ] } ~~~ # 獲取相同index相同type下不同ID的文檔 ~~~ GET /library/books/_mget { "docs": [ {"_id": 1}, {"type":"books","_id":3} ] } ~~~ # 可以這樣簡便的寫 ~~~ GET /library/books/_mget { "ids": ["1", "3"] } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看