<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 功能強大 支持多語言、二開方便! 廣告
                # Dynamic Mapping(動態映射) **Elasticsearch**?最重要的功能之一就是讓你盡可能快地開始探索數據。要索引文檔,你不用立即創建?**index**(索引),定義相關的?**mapping**?**type**(映射類型)和定義相關的?**fields**(字段)— 你可以只索引?**document**(文檔)、**index**(索引)、**type**(類型)和?**fields**(字段),這些操作都將自動生效。 | `curl -XPUT?``'localhost:9200/data/counters/1?pretty'`?`-H?``'Content-Type: application/json'`?`-d'?``# 1` `{?``"count"``: 5 }` `'` | | 1 | 創建名為?**data?**的索引,其中包含名為?**counters?**的?**mapping**?**type**(映射類型),以及名為?**count?**的?**long?**數據類型。 | 自動的檢測和添加新的類型以及字段的過程,稱之為動態映射。你可以根據需要定制動態映射的規則 :? [_default_?mapping](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/default-mapping.html)(**_default_ ?**映射) 配置一個基本映射,作用于新的映射類型。 [Dynamic field mappings](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/dynamic-field-mapping.html)(動態字段映射) 控制動態字段發現的規則。 [Dynamic templates](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/dynamic-templates.html)(動態模板) 利用自定義規則來配置動態添加的字段的映射。 Tips : 無論是自動還是顯式的創建索引,[Index templates](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/indices-templates.html "Index Templates")(索引模板)都允許你為一個新的索引配置?**mappings**,**settings**?和?**aliases**(別名)。 ### Disabling automatic type creation(禁用自動類型創建) 每個索引都可以通過將?**index**?**setting**(索引設置)中的**index.mapper.dynamic**?屬性設置為?**false**,來禁用?**Automatic type creation**(自動創建類型)-(根據數據類型自動創建?**mapping**):? | `curl -XPUT?``'localhost:9200/data/_settings?pretty'`?`-H?``'Content-Type: application/json'`?`-d'` `{` `"index.mapper.dynamic"``:``false`?`# 1` `}` `'` | | 1 | 禁用名為 “**data**” 的索引的自動創建類型(根據數據類型自動創建**mapping**)。 | 通過對索引模板的設置,可以禁用所有索引的自動創建類型(根據數據類型自動創建mapping)):? | `curl -XPUT?``'localhost:9200/_template/template_all?pretty'`?`-H?``'Content-Type: application/json'`?`-d'` `{` `"template"``:?``"*"``,` `"order"``:0,` `"settings"``: {` `"index.mapper.dynamic"``:?``false`?`# 1` `}` `}` `'` | | 1 | 禁用所有索引的自動創建類型(根據數據類型自動創建mapping)。 | 無論該屬性如何設置,在?[創建索引](http://cwiki.apachecn.org/pages/viewpage.action?pageId=4882789)?或使用?[PUT mapping](http://cwiki.apachecn.org/pages/viewpage.action?pageId=4882803)?**API**?時,我們仍然可以顯式的添加?**types**(類型)。
                  <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>

                              哎呀哎呀视频在线观看