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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # doc_values(文檔值) 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/doc-values.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/doc-values.html) 譯文鏈接 : [http://www.apache.wiki/pages/createpage-entervariables.action?templateId=4816898&spaceKey=Elasticsearch&title=&newSpaceKey=Elasticsearch&fromPageId=9405287](http://www.apache.wiki/pages/createpage-entervariables.action?templateId=4816898&spaceKey=Elasticsearch&title=&newSpaceKey=Elasticsearch&fromPageId=9405287) 貢獻者 : [程威](/display/~chengwei),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina) 在默認情況下許多字段都是 [**indexed**](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-index.html)(被索引的),這使得它們可以被搜索.反向索引允許查詢通過唯一性排序的?**`term`**(詞根)列表來查詢 **`term`**(詞根),并且可以立即訪問包含該 **`term`**(詞根)的文檔. 腳本中的排序,聚合和對字段值的訪問需要一種不同的數據訪問模式.我們不需要先查找 **`term`**(詞根),再尋找對應的 **`documents`**(文檔),而是可以先查找 **`document`**(文檔),再查找它在一個字段中的 **`terms`**(詞根). **Doc values** 是在 **document** 索引時間內構建在磁盤上的數據結構,這使得上面所說的數據訪問模式成為可能.它們存儲與 **_source?**相同的值,但是以列為主的方式存儲.這使得排序和聚合效率更高.幾乎所有字段類型都支持 **Doc values** ,除了 **the notable exception of analyzed string fields.** 默認情況下,支持 **doc values** 的所有字段都是開啟的.如果你確定不需要在字段上進行排序和聚合,活從腳本中訪問字段值,則可以禁用 **doc values** 來節省磁盤空間.? ``` curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "my_type": { "properties": { "status_code": { # 1 "type": "keyword" }, "session_id": { # 2 "type": "keyword", "doc_values": false } } } } } ' ``` | 1 | **`status_code`**?默認開啟?**`doc_values`** | | 2 | **`session_id`**?關閉?**`doc_values`**,但是仍然可以被查詢. |
                  <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>

                              哎呀哎呀视频在线观看