feat: 支持透出_score字段
This commit is contained in:
@@ -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("景区"));
|
||||
|
||||
@@ -159,6 +159,7 @@ public class EsSearchService {
|
||||
//用于后续映射
|
||||
includeFields.add("_id");
|
||||
includeFields.add("_type");
|
||||
includeFields.add("_score");
|
||||
PropUtils.fieldClean(daoMap, includeFields);
|
||||
}
|
||||
return daoMap;
|
||||
|
||||
Reference in New Issue
Block a user