1. ElasticSearch与SQL Server数据库的类比
2.Postman restful 创建Index (类似Sql server中创建DB)
创建索引elasticsearchtest
PUT http://localhost:9200/elasticsearchtest
Note:索引的名称必须为小写
3.创建Type
创建Type并且插入一条数据
POST http://localhost:9200/elasticsearchtest/account
插入的数据:
{
"account_number": 1,
"balance": 39225,
"firstname": "Amber",
"lastname": "Duke",
"age": 32,
"gender": "M",
"address": "880Holmes Lane",
"employer": "Pyrami",
"email": "amberduke@pyrami.com",
"city": "Brogan",
"state": "IL"
}