2024-07-30
{ "settings": { "index": { "store.type": "hybridfs", # 索引储存类型 还有niofs可选 "max_result_window": "10000000", # search查询时,默认超过10000会出现 Result window is too large 的问题 "number_of_replicas": "0", # 索引主分片的副本数,默认值是 1 "number_of_shards": "1", # 索引的主分片数,默认值是 1 "refresh_interval": "1s", # 执行新索引数据的刷新操作频率,写入日志这种实时性不是很高的数据,可以把刷新周期设置长些 "analysis": { "analyzer": { "default": { "type": "ik_smart" } } } } } }