关于elasticsearch:elasticsearch测试索引分词

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理