Elasticsearch 插件head 端增加一条记录和增加一个字段
增加字段在head端
http://192.168.170.69:9200/ PUT
/索引/_mapping/类型
{
"goods": { //goods 是类型
"properties": {
"china_title": { //增加的字段
"type": "string",
"analyzer":"english"
}
}
}
}
在head 端增加一条数据
http://192.168.170.69:9200/ POST
/blog/article/ // blog 是索引 article 是类型
{"id":12,"title":"Mysecond blog entry","content":"Still trying thisout...","posttime":"2014-01-01"}