Authored by hugufei

人气值召回和转化率召回时,排除为0的值

@@ -91,7 +91,7 @@ public class ExtendFilterHelper { @@ -91,7 +91,7 @@ public class ExtendFilterHelper {
91 */ 91 */
92 public static QueryBuilder commonHeatValueFilter() { 92 public static QueryBuilder commonHeatValueFilter() {
93 BoolQueryBuilder filter = QueryBuilders.boolQuery(); 93 BoolQueryBuilder filter = QueryBuilders.boolQuery();
94 - //filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.heatValue).gt(0)); 94 + filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.heatValue).gt(0));
95 //must not 95 //must not
96 filter.mustNot(notRecallFilter()); 96 filter.mustNot(notRecallFilter());
97 return filter; 97 return filter;
@@ -104,7 +104,7 @@ public class ExtendFilterHelper { @@ -104,7 +104,7 @@ public class ExtendFilterHelper {
104 */ 104 */
105 public static QueryBuilder commonCtrValueFilter() { 105 public static QueryBuilder commonCtrValueFilter() {
106 BoolQueryBuilder filter = QueryBuilders.boolQuery(); 106 BoolQueryBuilder filter = QueryBuilders.boolQuery();
107 - //filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.ctrValue).gt(0)); 107 + filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.ctrValue).gt(0));
108 //must not 108 //must not
109 filter.mustNot(notRecallFilter()); 109 filter.mustNot(notRecallFilter());
110 return filter; 110 return filter;