Authored by 胡古飞

暂时不支持全球购找相似

... ... @@ -89,6 +89,7 @@ public class SearchLikeHelper {
searchParam.setQuery(QueryBuilders.matchAllQuery());
BoolQueryBuilder boolFilter = QueryBuilders.boolQuery();
boolFilter.must(QueryBuilders.termsQuery("productSkn", productSkn));
boolFilter.mustNot(QueryBuilders.termsQuery("isGlobal", "Y"));//暂时不支持全球购找相似
searchParam.setFiter(boolFilter);
searchParam.setAggregationBuilders(null);
searchParam.setPage(0);
... ... @@ -159,6 +160,7 @@ public class SearchLikeHelper {
* @return
*/
public BoolQueryBuilder genDefaultQueryBuilder(List<String> notProductSkns,boolean isGlobal) {
isGlobal = false; //暂时写死,5.6再放开
BoolQueryBuilder boolFilter = QueryBuilders.boolQuery();
boolFilter.mustNot(QueryBuilders.termsQuery("isSeckill", "Y"));
boolFilter.must(QueryBuilders.termQuery("status", 1));
... ...