ES学习总结

1.创建索引

put localhost:9200/person

2.添加数据

put  localhost:9200/person/_doc/1

{
"first_name" : "John",
"last_name" : "Smith",
"age": 25,
"about" : "I love to go rock climbing",
"interests" : ["sports","music"]
}

3.如何搜索ES里面的数据

get localhost:9200/person/_doc/1

上一篇:docker安装elasticsearch:6.4.3


下一篇:ES集群在线滚动升级方案实践