ElasticSearch6.x 与MySQL8 核心概念对比:
ElasticSearch6.x |
MySQL8.x |
索引(index) |
数据库(database) |
类型(type) |
表(table) |
文档(document) |
行(row) |
字段(field) |
列(column) |
映射(mapping) |
表结构(schema) |
全文索引 |
索引 |
Get |
select |
Put/Post |
update/insert |
delete |
delete |
分片:ElasticSearch将索引数据进行切分,每一个切分称之为切片。
副本:每一个切片称之为主分片,副本是对主分片的一个或多个复制(拷贝)。