Shane

Results 6 comments of Shane

如果`analyzer`使用`ik_smart`会导致词项的缺失,从全文检索角度可预见对搜索结果的影响很大。 我使用`v7.3.0`的`IK`尝试了一下,`ik_smart`是可以准确拆分出`10万`的,`ik_max_word`不会将`10万`作为一个词项拆分出来。我的解决方案是使用`query_string`: ```json { "query": { "query_string": { "default_field": "content", "query": "(10) AND (万)" } } } ``` 测试发现`10`和`万`之间如有其它词项,score会低于`10万`以词对出现的文档。 方法仅供参考,暂时未找到最优解。

https://github.com/eisenxp/macos-golink-wrapper solves the problem perfectly.

Since the ES version in this repository is v2.0, which is too out-of-date to be compatible with the present version. You could run codes below which seem to be OK...

> No UT is included in this PR? yep, I may add this later since this is really a heavy work

Sample records are as follows: ![image](https://user-images.githubusercontent.com/20896930/189108039-044fcb02-f513-42e7-b2d5-c11b9d95031a.png)

Thanks for @xiaokang 's carefully review and tremendous aid. Cheers~