如下模板,是不是只对type等于DSPS-push的启动ik分词,怎么配置(不要一个个配置)对其他type也生效
{
"order": 0,
"template": "suyun-*",
"settings": {
"index": {
"analysis": {
"analyzer": {
"ik": {
"tokenizer": "ik_smart"
}
}
},
"number_of_shards": "3",
"number_of_replicas": "1"
}
},
"mappings": {
"DSPS-push": {
"properties": {
"message": {
"term_vector": "with_positions_offsets",
"search_analyzer": "ik_smart",
"analyzer": "ik_smart",
"type": "string"
}
}
}
},
"aliases": {}
}
1 个回复
luohuanfeng
赞同来自: