创建模版
curl -H "content-type:application/json" -XPUT es.dsj.inkept.cn/my_movies -d'{
"mappings" : {
"ymd" : {
"properties" : {
"actors" : {
"type": "nested",
"properties" : {
"first_name" : {"type" : "keyword"},
"last_name" : {"type" : "keyword"}
}},
"title" : {
"type" : "text",
"fields" : {"keyword":{"type":"keyword","ignore_above":256}}
}
}
}
}
}'
插入数据
curl -H "con