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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Index Modules(索引模塊) **Index**?**Modules**(索引模塊)是根據索引創建的?**modules**?(模塊),并控制與**index**(索引)相關的所有設置。 ### Index Settings(索引設置) 索引級別的設置可以針對每個索引單獨設置。這些設置可以是 :? *static*(靜態的) 只能在索引創建時或者在狀態為?[closed index](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/indices-open-close.html "Open / Close Index API")(閉合的索引)上設置。 *dynamic*(動態的) **? ? ? ? ??**可以使用?[update-index-settings](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/indices-update-settings.html)?**API**?在狀態為?**live index**(激活的索引)上更改它們。 警告 在閉合索引上更改?**static**(靜態的)或?**dynamic**(動態的)索引設置可能導致不正確的配置,無法在不刪除和重新創建索引的情況下進行糾正。 ### Static index settings(靜態索引設置) 以下是與任何特定索引模塊無關的,所有?**static**(靜態)索引設置的列表 :? **index.number_of_shards** 索引應具有的主分片數。默認為?**5**。此設置只能在索引創建時設置。在閉合的索引上無法更改。注意 : 分片數量限制為每個索引?**1024?**個。這是一種安全限制,防止意外創建索引后資源分配導致集群不穩定。可以通過在集群的每個節點上設置環境變量**ES_JAVA_OPTS ="- Des.index.max_number_of_shards = 128"?**來修改限制。 **index.shard.check_on_startup** [實驗功能],可能在后期版本中移除]是否應在索引打開前檢查分片是否損壞,當檢查到分片損壞將禁止分片被打開。 **false** 默認值,打開分片時不檢查分片是否損壞。 **checksum** 檢查物理損壞。 **true** 檢查物理和邏輯損壞,這將消耗大量的內存和?**CPU**。 **fix** 檢查物理和邏輯損壞。有損壞的分片將被集群自動刪除,這將導致數據丟失。該選項**也許會造成數據丟失**。使用時請考慮清楚。 檢查分片在數據量大的索引會消耗更多的時間。 **index.codec** 默認使用LZ4壓縮方式存儲數據,也可以設置為?**best_compression**,它使用[DEFLATE?](https://en.wikipedia.org/wiki/DEFLATE)方式以犧牲字段存儲性能為代價來獲得更高的壓縮比例。 **index.routing_partition_size** 自定義路由值可以轉發的目的分片數。默認為?**1**,只能在索引創建時設置。此值必須小于?**index.number_of_shards**,除非?**index.number_of_shards?**值也為?**1**。有關如何使用此設置的更多詳細信息,請參閱?[Routing to an index partition](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-routing-field.html#routing-index-partition)。 ### Dynamic index settings(動態索引設置) 以下是與任何特定索引模塊無關的,所有?**dynamic**(動態)索引設置的列表 :? **index.number_of_replicas** 每個主分片的副本數。默認為?**1**。 **index.auto_expand_replicas** 基于可用節點的數量自動分配副本數量。可以設置為以中劃線分隔的最小值和最大值(例如?**0-5**)或設置最大值為?**all**(例如0-all)。默認為?**false**(即禁用此功能)。 **index.refresh_interval** 執行刷新操作的頻率,這使得索引的最近更改可以被搜索。默認為?**1?**秒。可以設置為**-1?**以禁用刷新。 **index.max_result_window** 用于索引搜索的?**from+size?**的最大值。默認為?**10000**。搜索請求占用堆內存和時間與**from+size?**的大小成正比,有此限制是為了防止內存溢出。請參閱?**[Scroll?](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/search-request-scroll.html)**或?**[Search After](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/search-request-search-after.html)**,以提高效率。 **index.max_rescore_window** ? ? ??在搜索此索引中?**rescore?**的?**window_size?**的最大值。默認為 "**index.max_result_window**"設置的值即?**10000**。搜索請求占用堆內存和時間與**from+size?**的大小成正比,有此限制是為了防止內存溢出。 **index.blocks.read_only** ? ? ? 設置為?**true?**使索引和索引元數據為只讀,**false?**為允許寫入和元數據更改。 **index.blocks.read** ? ? ? 設置為?**true?**可禁用對索引的讀取操作。 **index.blocks.write** ? ? ? 設置為?**true?**可禁用對索引的寫入操作。 **index.blocks.metadata** ? ? ? 設置為?**true?**可禁用索引元數據的讀取和寫入。 **index.max_refresh_listeners** ? ? ??索引的每個分片上可用的最大刷新偵聽器數。這些偵聽器用于實現**[refresh=wait_for](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/docs-refresh.html)**。 ### Settings in other index modules(其他索引模塊的設置) 在索引模塊中其他可用的索引設置 :? [Analysis](http://www.apache.wiki/pages/viewpage.action?pageId=10028534)(分析) 定義?**analyzers**(分析器)、**tokenizers**(分詞器)、**token**?**filters**(詞元過濾器)和?**character**?**filters**(字符過濾器)。 [Index shard allocation](http://cwiki.apachecn.org/pages/viewpage.action?pageId=9405588)(索引分片分配) 控制索引分配給節點的位置、時間、以及分片的方式。 [Mapping](http://www.apache.wiki/pages/viewpage.action?pageId=10028537)(映射) 啟用或禁用索引的動態映射。 [Merging](http://www.apache.wiki/pages/viewpage.action?pageId=10028539)(合并) 控制后臺合并線程如何合并分片。 [Similarities](http://www.apache.wiki/pages/viewpage.action?pageId=10028541)(相似性) 配置自定義相似性設置以自定義搜索結果的計分方式。 [Slowlog](http://www.apache.wiki/pages/viewpage.action?pageId=10028543)(慢日志) 控制記錄搜索和索引請求的響應時間。 [Store](http://www.apache.wiki/display/Elasticsearch/Store)(存儲)) 配置用于存儲分片數據的文件系統類型。 [Translog](http://www.apache.wiki/pages/viewpage.action?pageId=10028549)(事務日志) 控制事務日志和后臺刷新操作。
                  <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>

                              哎呀哎呀视频在线观看