//应用指定分析仪测试分词文本
GET test_index/_analyze//test_index索引名称
{
"analyzer": "ik_max_word",//分析仪
"text": "中华人民共和国" //测试分司文本
}
//应用指定索引字段的分析仪测试
GET test_index/_analyze//test_index索引名称
{
"field": "content",//应用索引指定字段的分析仪
"text": "中华人民共和国"
}
//应用指定分析仪测试分词文本
GET test_index/_analyze//test_index索引名称
{
"analyzer": "ik_max_word",//分析仪
"text": "中华人民共和国" //测试分司文本
}
//应用指定索引字段的分析仪测试
GET test_index/_analyze//test_index索引名称
{
"field": "content",//应用索引指定字段的分析仪
"text": "中华人民共和国"
}