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