concept
Stored data to conduct Elasticsearch called index (indexing)
Concept of data
Relational DB -> Databases 数据库 -> Tables 表 -> Rows 行 -> Columns 列
Elasticsearch -> Indices 索引库 -> Types 类型 -> Documents 文档 -> Fields 字段/属性
Clusters may comprise a plurality of Elasticsearch index (database indices), each index may comprise a respective plurality of types (type table). These different types of a plurality of stored documents (document data lines), there are a plurality of attributes for each document (field columns).
3. Cluster
- Achieve replication and automatic failover
Fragmentation achieved, improving the throughput
- Access ES
- Use POSTMAN
- Terminal curl command
curl -X http请求方式 url -H 请求头字段 -d 请求体数据
curl -X GET 127.0.0.1:9200/_cluster/health?pretty # 设置?pretty可以进行格式化显示
curl -X PUT 127.0.0.1:9200/article -H 'Content-Type:application/json' -d '
{
}'
- View cluster status
curl -X GET 127.0.0.1:9200/_cluster/health?pretty