kibana完成的对Elasticsraech的处理

创建索引,然后才能对索引进行映射配置包括映射配置的映射字段,查看映射关系,字段属性的详解
PUT demo/_mapping/log
{
“properties”: {
“name”:{
“type”:”text”,
“index”: true,
“store”: true,
“analyzer”: “standard”
},
“images”: {
“type”: “keyword”,
“index”: “false”
},
“price”: {
“type”: “float”
}
}
}
PUT demo
{
“settings”: {
“number_of_replicas”: 1,
“number_of_shards”: 5
}
}
POST demo/log
{
“name”:”王大海”,
“images”:”http://image.leyou.com/12479122.jpg",
“price”:2699.00,
“hobby”:” 大 桌球 “
}
GET _search
{
“query”: {
“match_all”: {}
}
}
GET demo/_mapping