|
@@ -125,15 +125,16 @@ public class SearchV8ServiceImpl implements SearchService {
|
|
|
.add(termQuery("icp.keyword", content).boost(20))
|
|
|
.add(termQuery("app_info.keyword", content).boost(40))
|
|
|
.add(termQuery("company_tm.keyword", content).boost(20))
|
|
|
+ .tieBreaker(0.4F)
|
|
|
)
|
|
|
|
|
|
- .add(
|
|
|
- disMaxQuery()
|
|
|
- .add(matchQuery("icp", content).boost(8).operator(Operator.AND).minimumShouldMatch("5"))
|
|
|
- .add(matchQuery("app_info", content).boost(19).operator(Operator.AND).minimumShouldMatch("5"))
|
|
|
- .add(matchQuery("company_tm", content).boost(7).operator(Operator.AND).minimumShouldMatch("5"))
|
|
|
- .tieBreaker(0.3F)
|
|
|
- )
|
|
|
+ .add(
|
|
|
+ disMaxQuery()
|
|
|
+ .add(matchQuery("icp", content).boost(8).operator(Operator.AND).minimumShouldMatch("5"))
|
|
|
+ .add(matchQuery("app_info", content).boost(19).operator(Operator.AND).minimumShouldMatch("5"))
|
|
|
+ .add(matchQuery("company_tm", content).boost(7).operator(Operator.AND).minimumShouldMatch("5"))
|
|
|
+ .tieBreaker(0.3F)
|
|
|
+ )
|
|
|
|
|
|
/*.add( //todo 在排序上会有影响 ps. 奔驰
|
|
|
boolQuery()
|