PUT messagerecord
{
"settings": {
"analysis": {
"analyzer": {
"my_english_analyzer": {
"type": "standard",
"max_token_length": 5,
"stopwords": "_english_"
}
}
}
},
"mappings": {
"messagerecord": {
"properties": {
"content": {
"type": "text",
"store": true,
"analyzer":
"my_english_analyzer"
}
}
}
}
}
{
"settings": {
"analysis": {
"analyzer": {
"my_english_analyzer": {
"type": "standard",
"max_token_length": 5,
"stopwords": "_english_"
}
}
}
},
"mappings": {
"messagerecord": {
"properties": {
"content": {
"type": "text",
"store": true,
"analyzer":
"my_english_analyzer"
}
}
}
}
}
2 个回复
rochy - rochy_he
赞同来自: xiangxiaolu
https://www.elastic.co/guide/e ... .html
xiangxiaolu - 菜鸟
赞同来自: