请参考:总结——》【Elasticsearch】
:Linux
系统System
:elasticesearch7.6
版本version
:/opt/app/elasticesearch7.6
根目录rootPath
![]()
Elasticsearch——》测试:中文分词器插件es-ik的自定义词库
一、使用默认词库分词
POST _analyze
{
"analyzer": "ik_max_word",
"text":"老铁"
}
POST _analyze
{
"analyzer": "ik_max_word",
"text":"没毛病"
}
二、使用自定义词库分词
参考:Elasticsearch——》中文分词器插件es-ik的自定义词库
POST _analyze
{
"analyzer": "ik_max_word",
"text":"老铁"
}
POST _analyze
{
"analyzer": "ik_max_word",
"text":"没毛病"
}