Elasticsearch CRUD
Elasticsearch常用术语
新版语句:
POST /accounts/_doc/1
{
"name":"John",
"lastname":"Doe",
"job_desscription":"Systems administrator and Linux specialit"
}
GET /accounts/_doc/1
POST /accounts/_update/1
{
"doc":{
"name":"Tom"
}
}
DELETE /accounts/_doc/1
常用术语 - ElasticSearch
elasticsearch 删除文档
elasticsearch 更新文档
elasticsearch 读文档
GET /accouts/person/1
crud
elasticsearch create文档
elasticsearch常用术语
Kibana dev tools可以同时放多个语句
ES删除文档
ES更新文档
ES读取文档
ES创建文档
Document 文档数据 ==>Mysql数据内容
Index 索引 ==> MySQL数据库
Type 索引中的数据类型 ==>MySQL 数据库的表
Field字段,文档的属性 ==> MySQL数据库字段
Query DSL 查询语法 ==> MySQL SQL语句
ES MySQL
Index - Schema
Type - Table
Field - Field
Elasticsearch Create
Elasticsearch常用术语
Document 文档数据 ==>Mysql数据内容
Index 索引 ==> MySQL数据库
Type 索引中的数据类型 ==>MySQL 数据库的表
Field字段,文档的属性 ==> MySQL数据库字段
Query DSL 查询语法 ==> MySQL SQL语句
Elasticsearch 常用术语
用例查看post
ES常用术语
#增加
POST /account/person/1
{
"name":"John",
"lastname":"Doe",
"job_description":"System admin"
}
##查询
GET account/person/1
##修改
POST account/person/1/_update
{
"doc": {
"job_description":"Liunx system admin"
}
}
##删除
DELETE account/person/1
ES常用术语
命令