关键字 | 说明 | 属性值 |
---|---|---|
analyzer | 分词器,创建或者更新文档时,会对文档进行分词;查询时,对查询语句分词 | k_max_word:会将文本做最细粒度的拆分,ik_smart:会将文本做最粗粒度的拆分,ik_syno 和 ik_syno_smart 都会使用 synonym filter 实现同义词转换 |
index | 分词使用情况 | false: 不分词, ` "hotelTag": { |
"type": "text",
"index": false,
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"test": {
"type": "keyword"
}
}
}`
网友评论