PUT /mindex
{
"settings": {
"analysis": {
"analyzer": {
"default": {
"type": "english"
}
}
}
},
"mappings": {
"my_type": {
"properties": {
"title": {
"type": "text",
"analyzer": "standard"
},
"name": {
"type": "text"
}
}
}
}
}
忘记了怎么设置了,这样写的对name这个字段好像没作用,查看mapping,name字段并没有分析器
2 个回复
rochy - rochy_he
赞同来自:
rochy - rochy_he
赞同来自: