...
|
...
|
@@ -277,7 +277,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl |
|
|
|
|
|
// 根据关联的数量增加打分
|
|
|
FunctionScoreQueryBuilder functionScoreQueryBuilder = new FunctionScoreQueryBuilder(queryBuilder);
|
|
|
functionScoreQueryBuilder.add(ScoreFunctionBuilders.fieldValueFactorFunction(countField).factor(0.3F).modifier(FieldValueFactorFunction.Modifier.LOG2P).missing(0));
|
|
|
functionScoreQueryBuilder.add(ScoreFunctionBuilders.fieldValueFactorFunction(countField).factor(0.2F).modifier(FieldValueFactorFunction.Modifier.LOG2P).missing(0));
|
|
|
|
|
|
searchParam.setQuery(functionScoreQueryBuilder);
|
|
|
searchParam.setPage(1);
|
...
|
...
|
|