elasticsearch ik 限制匹配字符数
{
"analyize_db": {
"aliases": {},
"mappings": {},
"settings": {
"index": {
"number_of_shards": "5",
"provided_name": "analyize_db",
"creation_date": "1558693785632",
"analysis": {
"filter": {
"by_length": {
"type": "length",
"min": "2"
},
"by_tfr": {
"type": "stop",
"stopwords": [
" "
]
},
"by_sfr": {
"type": "synonym",
"synonyms_path": "analysis/synonyms.txt"
}
},
"analyzer": {
"by_smart": {
"filter": [
"by_tfr",
"by_sfr",
"by_length"
],
"char_filter": [
"by_cfr"
],
"type": "custom",
"tokenizer": "ik_smart"
},
"by_max_word": {
"filter": [
"by_tfr",
"by_sfr",
"by_length"
],
"char_filter": [
"by_cfr"
],
"type": "custom",
"tokenizer": "ik_max_word"
},
"by_max_word1": {
"filter": [
"by_tfr",
"by_sfr"
],
"char_filter": [
"by_cfr"
],
"type": "custom",
"tokenizer": "ik_max_word"
}
},
"char_filter": {
"by_cfr": {
"type": "mapping",
"mappings": [
"| => |"
]
}
}
},
"number_of_replicas": "1",
"uuid": "NKS3UzVBSamscKJsQq3IaQ",
"version": {
"created": "5030099"
}
}
}
}
}
评论