//使用指定分析仪测试分词文本

GET test_index/_analyze//test_index索引名称 
{
 "analyzer": "ik_max_word",//分析仪
 "text": "中华人民共和国" //测试分司文本
}

//使用指定索引字段的分析仪测试

GET test_index/_analyze//test_index索引名称 
{
 "field": "content",//使用索引指定字段的分析仪
 "text": "中华人民共和国"
}

冰雪之年
1 声望0 粉丝

一个写代码的人