url : :9200/xx_index
put
xx_index 是索引名字
{
"mappings": {
"search_log" :{ //这是type
"properties":{
"search_keyword" :{
"type" : "string"
},
"search_time" :{
"type" : "string"
},
"search_ip" : {
"type" : "ip"
},
"uid" : {
"type" : "integer"
}
}
}
}
}