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)
|
.setHighLightField(realHighLightField)
|
||||||
.setHighLightType(highLight.highLightType())
|
.setHighLightType(highLight.highLightType())
|
||||||
.setRequireFieldMatch(highLight.requireFieldMatch());
|
.setRequireFieldMatch(highLight.requireFieldMatch());
|
||||||
// 多级高亮 合并高亮结果时,尝试调用 first() 方法
|
// 多级高亮 合并高亮结果时,es8会尝试调用 first() 方法-降级不会影响es7的查询
|
||||||
// 如果是pinyin那么进行高亮降级,否则会出现first() should not be called in this context异常
|
// 如果是pinyin那么进行高亮降级,否则会出现first() should not be called in this context异常
|
||||||
if (realHighLightField.endsWith(".pinyin")) {
|
if (realHighLightField.endsWith(".pinyin")) {
|
||||||
highlightParam.setHighLightType(HighLightTypeEnum.PLAIN);
|
highlightParam.setHighLightType(HighLightTypeEnum.PLAIN);
|
||||||
|
|||||||
@ -4,7 +4,7 @@ easy-es:
|
|||||||
# schema: http
|
# schema: http
|
||||||
# username: elastic
|
# username: elastic
|
||||||
# password: mg123456
|
# password: mg123456
|
||||||
compatible: false
|
compatible: true
|
||||||
keep-alive-millis: 18000
|
keep-alive-millis: 18000
|
||||||
global-config:
|
global-config:
|
||||||
i-kun-mode: false
|
i-kun-mode: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user