讨论数量:
$ curl -H'Content-Type: application/json' -XPUT http://localhost:9200/test_index/_mapping/ -d'{
"properties": {
"title": { "type": "text", "analyzer": "ik_smart" },
"description": { "type": "text", "analyzer": "ik_smart" },
"price": { "type": "scaled_float", "scaling_factor": 100 }
}
}'
这样子可以 es7.3
我用的最新的homestead,lc-homestead-6.4.1-2019072300.zip。elastic版本,6.8。按照课程走的,提示:
"type" : "action_request_validation_exception",
"reason" : "Validation Failed: 1: mapping type is missing;"
推荐文章: