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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Term_vectors(詞根信息) **Term vectors** 是通過分析器解析產生的信息,包括: * 一組 **terms** (詞根)。 * 每個詞根的位置(順序)。 * 映射詞根的首字符和尾字符與原始字符串原點的偏移量。 這些 **term vectors** 將被存儲,一遍將他從一個特定的文檔中取出。 **term_vector**?有一下參數設置: | no | 不存儲 **term vectors** 信息。(默認值) | | yes | 僅次字段中的 **terms**(詞根)被存儲。 | | with_positions | 存儲詞根和位置。 | | with_offset | 存儲詞根和字符偏移量。 | | with_positions_offsets | 存儲詞根、位置和字符偏移量。 | **fast vector highlighter** 需要用到?**with_positions_offsets**。**term vectors API** 可以檢索存儲的任何內容。 警告 使用 **with_positions_offsets?**將會是字段的索引大小增加一倍。 ``` curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "my_type": { "properties": { "text": { "type": "text", "term_vector": "with_positions_offsets" } } } } } ' curl -XPUT 'localhost:9200/my_index/my_type/1?pretty' -H 'Content-Type: application/json' -d' { "text": "Quick brown fox" } ' curl -XGET 'localhost:9200/my_index/_search?pretty' -H 'Content-Type: application/json' -d' { "query": { "match": { "text": "brown fox" } }, "highlight": { "fields": { "text": {} #1 } } } ' ``` | 1 | 因為 **term vectors** 功能的使用,**text** 字段將會默認使用 **fast vector highlighter**。 | 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/term-vector.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/term-vector.html)(修改該鏈接為官網對應的鏈接) 譯文鏈接 : [http://www.apache.wiki/pages/viewpage.action?pageId=10027731](http://www.apache.wiki/pages/viewpage.action?pageId=10027731)(修改該鏈接為 **ApacheCN** 對應的譯文鏈接) 貢獻者 : [郭峰](/display/~guofeng),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina)
                  <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>

                              哎呀哎呀视频在线观看