|
@@ -127,35 +127,35 @@ public class SearchV8ServiceImpl implements SearchService {
|
|
.add(termQuery("company_tm.keyword", content).boost(20))
|
|
.add(termQuery("company_tm.keyword", content).boost(20))
|
|
)
|
|
)
|
|
|
|
|
|
- /* .add(
|
|
|
|
|
|
+ .add(
|
|
disMaxQuery()
|
|
disMaxQuery()
|
|
- .add(matchQuery("icp", content).boost(8).operator(Operator.AND).minimumShouldMatch("5<80%"))
|
|
|
|
- .add(matchQuery("app_info", content).boost(23).operator(Operator.AND).minimumShouldMatch("5<80%"))
|
|
|
|
- .add(matchQuery("company_tm", content).boost(7).operator(Operator.AND).minimumShouldMatch("5<80%"))
|
|
|
|
|
|
+ .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)
|
|
.tieBreaker(0.3F)
|
|
- )*/
|
|
|
|
|
|
+ )
|
|
|
|
|
|
- /* .add(
|
|
|
|
|
|
+ /*.add( //todo 在排序上会有影响 ps. 奔驰
|
|
boolQuery()
|
|
boolQuery()
|
|
.should(matchQuery("icp", content).boost(8))
|
|
.should(matchQuery("icp", content).boost(8))
|
|
- .should(matchQuery("app_info", content).boost(23))
|
|
|
|
|
|
+ .should(matchQuery("app_info", content).boost(19))
|
|
.should(matchQuery("company_tm", content).boost(7))
|
|
.should(matchQuery("company_tm", content).boost(7))
|
|
|
|
|
|
.should(termQuery("icp.keyword", content).boost(20))
|
|
.should(termQuery("icp.keyword", content).boost(20))
|
|
.should(termQuery("app_info.keyword", content).boost(40))
|
|
.should(termQuery("app_info.keyword", content).boost(40))
|
|
- .should(termQuery("company_tm.keyword", content).boost(15))
|
|
|
|
|
|
+ .should(termQuery("company_tm.keyword", content).boost(20))
|
|
.minimumShouldMatch("5<80%")
|
|
.minimumShouldMatch("5<80%")
|
|
|
|
|
|
)*/
|
|
)*/
|
|
|
|
|
|
- .add(
|
|
|
|
|
|
+ /*.add(
|
|
disMaxQuery()
|
|
disMaxQuery()
|
|
.add(boolQuery().should(matchQuery("icp", content).boost(8)).minimumShouldMatch("5<80%"))
|
|
.add(boolQuery().should(matchQuery("icp", content).boost(8)).minimumShouldMatch("5<80%"))
|
|
.add(boolQuery().should(matchQuery("app_info", content).boost(19)).minimumShouldMatch("5<80%"))
|
|
.add(boolQuery().should(matchQuery("app_info", content).boost(19)).minimumShouldMatch("5<80%"))
|
|
.add(boolQuery().should(matchQuery("company_tm", content).boost(7)).minimumShouldMatch("5<80%"))
|
|
.add(boolQuery().should(matchQuery("company_tm", content).boost(7)).minimumShouldMatch("5<80%"))
|
|
.tieBreaker(0.3F)
|
|
.tieBreaker(0.3F)
|
|
|
|
|
|
- )
|
|
|
|
|
|
+ )*/
|
|
|
|
|
|
.tieBreaker(0.4F)
|
|
.tieBreaker(0.4F)
|
|
);
|
|
);
|