1.创建索引+映射:
PUT /xc_course
{
"mappings": {
"properties": {
"description":{
"analyzer":"ik_max_word",
"search_analyzer":"ik_smart",
"type":"text"
},
"end_time":{
"type":"date",
"format":"yyyy-MM-dd HH:mm:ss"
}
}
}
}
1.创建索引+映射:
PUT /xc_course
{
"mappings": {
"properties": {
"description":{
"analyzer":"ik_max_word",
"search_analyzer":"ik_smart",
"type":"text"
},
"end_time":{
"type":"date",
"format":"yyyy-MM-dd HH:mm:ss"
}
}
}
}