analysis-pinyin
analysis-pinyin copied to clipboard
使用拼音搜索英文的时候能够不拆分单词吗?如搜索hello world的时候
{ "tokens": [ { "token": "he", "start_offset": 0, "end_offset": 0, "type": "word", "position": 0 }, { "token": "l", "start_offset": 0, "end_offset": 0, "type": "word", "position": 1 }, { "token": "lo", "start_offset": 0, "end_offset": 0, "type": "word", "position": 2 }, { "token": "wo", "start_offset": 0, "end_offset": 0, "type": "word", "position": 3 }, { "token": "r", "start_offset": 0, "end_offset": 0, "type": "word", "position": 4 }, { "token": "l", "start_offset": 0, "end_offset": 0, "type": "word", "position": 5 }, { "token": "d", "start_offset": 0, "end_offset": 0, "type": "word", "position": 6 }, { "token": "helloworld", "start_offset": 0, "end_offset": 0, "type": "word", "position": 6 } ] }
其实我是想搜索hello world 。这个怎么处理呢?
建议能像Ik一样添加字典 建议增加拼音不分词配置 建议增加英文不分词配置 现在oppo能搜出iphone,OnePlus(一加),因为分词分出了o,p
您这个问题解决了吗? 实现英语单词不分词的
您这个问题解决了吗? 实现英语单词不分词的
没有呢,你解决了吗?解决了在这里回复一下,谢谢。