一、文档(Document)

二、JSON文档

三、文档的元数据

_all 在7.0版本废除
四、索引

五、索引的不同语意

倒排索引:搜索引擎中非常重要的一种数据结构
倒排索引-- 节省空间
六、Type


- 为什么不再支持单个Index下,多个Tyeps https://www.elastic.co/cn/blog/moving-from-types-to-typeless-apis-in-elasticsearch-7-0
七、抽象与类比

八、REST API --- 很容易被各种语言调用

九、基本的API

Index 相关 API,需要添加 电商案例数据

#查看索引相关信息
GET kibana_sample_data_ecommerce
#查看索引的文档总数
GET kibana_sample_data_ecommerce/_count
#查看前10条文档,了解文档格式
POST kibana_sample_data_ecommerce/_search
{
}
#_cat indices API
#查看indices
GET /_cat/indices/kibana*?v&s=index
#查看状态为绿的索引
GET /_cat/indices?v&health=green
#按照文档个数排序
GET /_cat/indices?v&s=docs.count:desc
#查看具体的字段
GET /_cat/indices/kibana*?pri&v&h=health,index,pri,rep,docs.count,mt
#How much memory is used per index?
GET /_cat/indices?v&h=i,tm&s=tm:desc
网友评论