{
"mappings": {
"properties": {
"cellphone": {
"type": "text",
"analyzer": "code_split_ngram_analyzer"
},
"tag": {
"type": "text",
"analyzer": "char_standard_analyzer",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "my_normalizer",
"ignore_above": 256
}
}
}
}
},
"settings": {
"index": {
"max_ngram_diff": "5",
"refresh_interval": "1m",
"number_of_shards": "2",
"analysis": {
"normalizer": {
"my_normalizer": {
"type": "custom",
"filter": [
"lowercase",
"asciifolding"
]
}
},
"analyzer": {
"code_split_ngram_analyzer": {
"filter": [
"lowercase"
],
"type": "custom",
"tokenizer": "code_split_ngram_tokenizer"
},
"char_standard_analyzer": {
"filter": [
"lowercase",
"asciifolding"
],
"tokenizer": "standard"
}
},
"tokenizer": {
"code_split_ngram_tokenizer": {
"token_chars": [
"letter",
"digit"
],
"min_gram": "3",
"type": "ngram",
"max_gram": "6"
}
}
}
}
}
}
01-21
2007
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-05
3922
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)