|
@@ -129,9 +129,9 @@ public class SearchV8ServiceImpl implements SearchService {
|
|
|
|
|
|
.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"))
|
|
|
+ .add(matchQuery("icp", content).boost(8).minimumShouldMatch("5"))
|
|
|
+ .add(matchQuery("app_info", content).boost(19).minimumShouldMatch("5"))
|
|
|
+ .add(matchQuery("company_tm", content).boost(7).minimumShouldMatch("5"))
|
|
|
.tieBreaker(0.3F)
|
|
|
)
|
|
|
|
|
@@ -214,7 +214,7 @@ public class SearchV8ServiceImpl implements SearchService {
|
|
|
);*/
|
|
|
|
|
|
boolQuery.should(multiMatchQuery(content)
|
|
|
- .operator(Operator.AND)
|
|
|
+// .operator(Operator.AND)
|
|
|
.type(MultiMatchQueryBuilder.Type.CROSS_FIELDS)
|
|
|
.minimumShouldMatch("5<80%")
|
|
|
.tieBreaker(0.3F)
|