7.2 测试使用

使用默认分词器

GET movie_index/_analyze
{  
  "text": "我是中国人"
}

结果:

使用ik_smart分词器

GET movie_index/_analyze
{  
  "analyzer": "ik_smart", 
  "text": "我是中国人"
}

结果:

使用 ik_max_word

GET movie_index/_analyze
{  
    "analyzer": "ik_max_word", 
    "text": "我是中国人"
}

results matching ""

    No results matching ""