我的配置文件是这样的,现在想在索引数据的时候将html过滤掉,但是使用这种配置方式进行数据索引之后,查看数据html标签依然存在,不解!
{
"settings":{
"analysis":{
"analyzer": {
"ik_max_word": {
"type": "ik",
"use_smart": false
},
"ik_html_strip": {
"char_filter": [
"html_strip"
],
"type": "custom",
"tokenizer": "ik",
"use_smart": false
},
"html_strip": {
"char_filter": [
"html_strip"
],
"tokenizer": "standard"
}
}
}
},
"mappings":{
"list": {
"dynamic": true,
"properties": {
"domain_id":{
"type":"integer"
},
"info_id": {
"type": "integer"
},
"user_id":{
"type": "integer"
},
"title":{
"type":"string",
"index":"analyzed",
"analyzer":"ik_max_word",
"search_analyzer":"ik_max_word",
"include_in_all": "true",
"boost": 7
},
"newstype":{
"type": "integer"
},
"sources":{
"type": "string",
"index": "not_analyzed"
},
"formurl":{
"type": "string",
"index": "not_analyzed"
},
"content":{
"type":"string",
"index":"analyzed",
"analyzer":"ik_max_word",
"search_analyzer":"ik_max_word",
"include_in_all": "true",
"boost": 7
},
"picture":{
"type":"string",
"index":"not_analyzed"
},
"isflag":{
"type":"integer"
},
"created":{
"type":"integer"
}
}
}
}
}