<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Multi termvectors API ## Multi termvectors API Multi termvectors API允許一次獲得多個詞條向量。檢索詞條向量的文檔由索引 、類型和ID指定。但文件也可以在請求本身中人為地提供。 響應包括一個具有所有獲取的術語的`docs`數組,每個元素具有由[termvectors](https://aqlu.gitbooks.io/elasticsearch-reference/content/Document_APIS/Term_Vectors.html)?API提供的結構。這是一個例子: ``` POST /_mtermvectors { "docs": [ { "_index": "twitter", "_type": "tweet", "_id": "2", "term_statistics": true }, { "_index": "twitter", "_type": "tweet", "_id": "1", "fields": [ "message" ] } ] } ``` 有關可能的參數的描述,請參閱[termvectors](https://aqlu.gitbooks.io/elasticsearch-reference/content/Document_APIS/Term_Vectors.html)?API。 `_mtermvectors`端點也可以針對索引使用(在這種情況下,它不需要在主體中): ``` POST /twitter/_mtermvectors { "docs": [ { "_type": "tweet", "_id": "2", "fields": [ "message" ], "term_statistics": true }, { "_type": "tweet", "_id": "1" } ] } ``` 以及類型: ``` POST /twitter/tweet/_mtermvectors { "docs": [ { "_id": "2", "fields": [ "message" ], "term_statistics": true }, { "_id": "1" } ] } ``` 如果所有請求的文檔都在相同的索引并且具有相同的類型,并且參數是相同的,則可以簡化請求: ``` POST /twitter/tweet/_mtermvectors { "ids" : ["1", "2"], "parameters": { "fields": [ "message" ], "term_statistics": true } } ``` 此外,就像對于[termvectors](https://aqlu.gitbooks.io/elasticsearch-reference/content/Document_APIS/Term_Vectors.html)?API一樣,可以為用戶提供的文檔生成詞條向量。所使用的映射由`_index`和`_type`確定。 ``` POST /_mtermvectors { "docs": [ { "_index": "twitter", "_type": "tweet", "doc" : { "user" : "John Doe", "message" : "twitter test test test" } }, { "_index": "twitter", "_type": "test", "doc" : { "user" : "Jane Doe", "message" : "Another twitter test ..." } } ] } ```
                  <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>

                              哎呀哎呀视频在线观看