Index(indices) 至关于 关系型数据库的 table, document 至关于关系型数据库的 row, 还有一个type的概念(能够理解为table的schema)是属于 index的,一个index 只能有一种type,数据库
ES怎么扩展? 用shards, 一个shard 就是整个文档的一个part, 能够分布在cluster内部的不一样机器上app
mapping:curl
field type 数据类型,field index 要不要被full-text 检索, field analyzer 定义语言url
建立mapping, 就是给movies 整个Index 建立schema3d
建立了之后get一下code
insert 一个movie document(row)orm
get 刚刚insert 的 documentblog
批量Insert documents:ip
能够get 刚才批量插入的documents文档
curl -XGET 127.0.0.1:9200/movies/_search?pretty
update document
下面是update API,还能够用-XPUT 加上全部的field 来update.
Delete document
curl -XDELETE 127.0.0.1:9200/movies/_doc/58559
full text search
有精确匹配("type": keyword)和模糊匹配("type": text)两种
Modeling:
normalized data:
denormalized data
parent / child relationship