elasticseach-ik分词 创建索引
1. 指令方式创建
curl -XPUT http://192.168.199.126:9200/ikIndex2
2. head插件方式创建 如下图
创建索引的映射
POST http://192.168.199.126:9200/ik2/fulltext/_mapping
{
"properties": {
"content": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word"
发表于 2024-04-09 22:28:31 阅读(207)