关于elasticsearch:elasticsearch测试索引分词

3次阅读

共计 217 个字符,预计需要花费 1 分钟才能阅读完成。

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

正文完
 0