From a674e3d0ced6e65188e1a3f69d26756d52621ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=9D=B0?= Date: Sun, 13 Apr 2025 14:40:08 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=85=B3=E4=BA=8E=E5=88=86=E8=AF=8D?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=8A=A5=E9=94=99=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/easyes/core/toolkit/EntityInfoHelper.java | 2 +- easy-es-springboot-test/src/test/resources/application.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/easy-es-core/src/main/java/org/dromara/easyes/core/toolkit/EntityInfoHelper.java b/easy-es-core/src/main/java/org/dromara/easyes/core/toolkit/EntityInfoHelper.java index 6f868917..ba723910 100644 --- a/easy-es-core/src/main/java/org/dromara/easyes/core/toolkit/EntityInfoHelper.java +++ b/easy-es-core/src/main/java/org/dromara/easyes/core/toolkit/EntityInfoHelper.java @@ -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); diff --git a/easy-es-springboot-test/src/test/resources/application.yml b/easy-es-springboot-test/src/test/resources/application.yml index aebabb3e..34c7c11a 100644 --- a/easy-es-springboot-test/src/test/resources/application.yml +++ b/easy-es-springboot-test/src/test/resources/application.yml @@ -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