
- Elasticsearch 教程
- Elasticsearch - 首頁
- Elasticsearch - 基本概念
- Elasticsearch - 安裝
- Elasticsearch - 資料填充
- 版本之間遷移
- Elasticsearch - API 約定
- Elasticsearch - 文件 API
- Elasticsearch - 搜尋 API
- Elasticsearch - 聚合
- Elasticsearch - 索引 API
- Elasticsearch - CAT API
- Elasticsearch - 叢集 API
- Elasticsearch - 查詢 DSL
- Elasticsearch - 對映
- Elasticsearch - 分析
- Elasticsearch - 模組
- Elasticsearch - 索引模組
- Elasticsearch - Ingest 節點
- Elasticsearch - 管理索引生命週期
- Elasticsearch - SQL 訪問
- Elasticsearch - 監控
- Elasticsearch - 資料彙總
- Elasticsearch - 凍結索引
- Elasticsearch - 測試
- Elasticsearch - Kibana 儀表盤
- Elasticsearch - 按欄位過濾
- Elasticsearch - 資料表格
- Elasticsearch - 區域地圖
- Elasticsearch - 餅圖
- Elasticsearch - 面積圖和柱狀圖
- Elasticsearch - 時間序列
- Elasticsearch - 標籤雲
- Elasticsearch - 熱力圖
- Elasticsearch - Canvas
- Elasticsearch - 日誌 UI
- Elasticsearch 有用資源
- Elasticsearch - 快速指南
- Elasticsearch - 有用資源
- Elasticsearch - 討論
Elasticsearch - 索引模組
這些模組是為每個索引建立的,並控制索引的設定和行為。例如,索引可以使用多少個分片,或者該索引的主分片可以有多少個副本等。索引設定有兩種型別:
- 靜態 - 這些只能在索引建立時或在關閉的索引上設定。
- 動態 - 這些可以在活動索引上更改。
靜態索引設定
下表顯示了靜態索引設定的列表:
設定 | 可能的值 | 描述 |
---|---|---|
index.number_of_shards | 預設為 5,最大 1024 | 索引應具有的主分片數。 |
index.shard.check_on_startup | 預設為 false。可以為 True | 是否在開啟分片之前檢查其是否損壞。 |
index.codec | LZ4 壓縮。 | 用於儲存資料的壓縮型別。 |
index.routing_partition_size | 1 | 自定義路由值可以到達的分片數。 |
index.load_fixed_bitset_filters_eagerly | false | 指示是否為巢狀查詢預載入快取的過濾器 |
動態索引設定
下表顯示了動態索引設定的列表:
設定 | 可能的值 | 描述 |
---|---|---|
index.number_of_replicas | 預設為 1 | 每個主分片具有的副本數。 |
index.auto_expand_replicas | 以短橫線分隔的下限和上限 (0-5) | 根據叢集中的資料節點數自動擴充套件副本數。 |
index.search.idle.after | 30 秒 | 分片在被視為搜尋空閒之前無法接收搜尋或獲取請求的時間長度。 |
index.refresh_interval | 1 秒 | 執行重新整理操作的頻率,這使索引的最新更改對搜尋可見。 |
廣告