mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-06 17:18:57 +08:00
docs: 关于分词高亮报错注释
This commit is contained in:
parent
29fd02f4f6
commit
a674e3d0ce
@ -414,7 +414,7 @@ public class EntityInfoHelper {
|
||||
.setHighLightField(realHighLightField)
|
||||
.setHighLightType(highLight.highLightType())
|
||||
.setRequireFieldMatch(highLight.requireFieldMatch());
|
||||
// 多级高亮 合并高亮结果时,尝试调用 first() 方法
|
||||
// 多级高亮 合并高亮结果时,es8会尝试调用 first() 方法-降级不会影响es7的查询
|
||||
// 如果是pinyin那么进行高亮降级,否则会出现first() should not be called in this context异常
|
||||
if (realHighLightField.endsWith(".pinyin")) {
|
||||
highlightParam.setHighLightType(HighLightTypeEnum.PLAIN);
|
||||
|
||||
@ -4,7 +4,7 @@ easy-es:
|
||||
# schema: http
|
||||
# username: elastic
|
||||
# password: mg123456
|
||||
compatible: false
|
||||
compatible: true
|
||||
keep-alive-millis: 18000
|
||||
global-config:
|
||||
i-kun-mode: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user