feat: 支持透出_score字段

This commit is contained in:
杨丛聿
2025-01-10 21:28:43 +08:00
committed by haokai
parent 208197377f
commit bdc20df2aa
2 changed files with 2 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ public class GraphConstants {
public static final Set<String> SKIP_MODE = Sets.newHashSet("private");
public static final Set<String> ES_REMOVE_FIELD = Sets.newHashSet(
"_index", "_score");
"_index");
public static final Map<String, Set<String>> LABEL_NEED_ANALYZER = new HashMap<String, Set<String>>() {{
put(LABEL_ADDR, Sets.newHashSet("景区"));

View File

@@ -159,6 +159,7 @@ public class EsSearchService {
//用于后续映射
includeFields.add("_id");
includeFields.add("_type");
includeFields.add("_score");
PropUtils.fieldClean(daoMap, includeFields);
}
return daoMap;