feng smith

Results 6 comments of feng smith

enable_lowercase 是指统一把所有的英文字母都转换为小写吧,和驼峰没啥关系。

可以自己搞,在把内容保存在 es 之前,自己先处理一遍内容。空格肯定是会分词的。可以在小写字母和大写字母之间加一个空格,就可以达到驼峰分词的目的了。我写了段简单的 demo 代码,你可以参考一下。 ``` java public static String splitCamelWords(String content) { if (content == null) { return ""; } char[] chars = content.toCharArray(); StringBuilder sb = new StringBuilder();...

https://www.jianshu.com/p/741a4e49bcee 这儿有个 blog 可以参考下,需要配合其他 filter 来实现。

我没法🍚墙,图片裂了,不知道我没有上传成功,还是显示有问题。 我把有问题的代码,贴一下: 原来的代码: ``` java int offset = this.available - this.cursor; // 121 行,有 bug 。 if(offset > 0){ //最近一次读取的>最近一次处理的,将未处理的字串拷贝到segmentBuff头部 System.arraycopy(this.segmentBuff , this.cursor , this.segmentBuff , 0 , offset); //...

把第 11668 行代码改成: ``` if (!parseCompatibilityIdentity(column, mode) || column.getIdentityOptions() != null) { return; } ``` 就不报错了。