码迷,mamicode.com
首页 > 移动开发 > 详细

curl方式创建elasticsearch的mapping

时间:2016-08-16 16:06:50      阅读:421      评论:0      收藏:0      [点我收藏+]

标签:

curl方式创建elasticsearch的mapping

curl -XPUT ‘http://192.168.1.105:9200/bank/item2/_mapping‘ -d ‘
{
"item2": {
"properties": {
"title": {
"type": "string",
"boost": 2.0,
"index": "analyzed",
"store": "yes",
"term_vector" : "with_positions_offsets"
},
"description": {
"type": "string",
"boost": 1.0,
"index": "analyzed",
"store": "yes",
"term_vector" : "with_positions_offsets"
},
"link": {
"type": "geo_point"
},
"ip": {
"store": true,
"type": "ip"
}
}
}
}‘

curl方式创建elasticsearch的mapping

标签:

原文地址:http://www.cnblogs.com/mayidudu/p/5776658.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!