HappyToSummer
HappyToSummer
make sure your es&node alive,you can use the head plugin test,http://xxxx:9200/_plugin/head/
1、yml中分词部分配置贴一下。 2、如果要让分词生效必须要注意,词典编辑时必须使用utf-8无bom格式编码,测试结果 { tokens: [ { token: "全新shoei", start_offset: 0, end_offset: 7, type: "CN_WORD", position: 0 }, { token: "全新", start_offset: 0, end_offset: 2, type: "CN_WORD", position: 1 }, {...
@401825317 yml中指定了默认的分词器,2.6版本配置请参考 `index.analysis.analyzer.default.type: ik ` 此处的ik指ik_max_word,会穷尽所有词的组合
@401825317 ik_smart拆分较粗测试结果与你一致,如果想用更细的得用ik_max_word