ElasticSearch 官网文档学习记录
什么是ES,以及ES的基础知识就不单独记录了.
记录一下使用kibana es使用的一些基本Restful API
GET
POST
PUT
DELETE
HEAD
Index的配置
主要分为两类:静态配置项,动态配置项
静态配置
index.number_of_shards
索引应该具有的主分片数。默认为5。
index.codec
采取压缩得方式,默认为: LZ4 compression
index.routing_partition_size
自定义的碎片数。选路价值可以转到。默认值为1,只能在索引创建时设置。此值必须小于index.number_of_shards除非index.number_of_shards值也是1。
动态配置
index.number_of_replicas
每个主分片具有的副本数。默认为1。
index.refresh_interval
执行刷新操作的频率,这会使最近对索引的更改对搜索可见。默认为1s。可以设置为-1
index.max_result_window
from + size得最大值,默认为10000。