Authored by hugufei

召回时不考虑值是否大于0

@@ -91,7 +91,6 @@ public class ExtendFilterHelper { @@ -91,7 +91,6 @@ 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));  
95 //must not 94 //must not
96 filter.mustNot(notRecallFilter()); 95 filter.mustNot(notRecallFilter());
97 return filter; 96 return filter;
@@ -104,7 +103,6 @@ public class ExtendFilterHelper { @@ -104,7 +103,6 @@ public class ExtendFilterHelper {
104 */ 103 */
105 public static QueryBuilder commonCtrValueFilter() { 104 public static QueryBuilder commonCtrValueFilter() {
106 BoolQueryBuilder filter = QueryBuilders.boolQuery(); 105 BoolQueryBuilder filter = QueryBuilders.boolQuery();
107 - filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.ctrValue).gt(0));  
108 //must not 106 //must not
109 filter.mustNot(notRecallFilter()); 107 filter.mustNot(notRecallFilter());
110 return filter; 108 return filter;
@@ -120,7 +118,6 @@ public class ExtendFilterHelper { @@ -120,7 +118,6 @@ public class ExtendFilterHelper {
120 BoolQueryBuilder filter = QueryBuilders.boolQuery(); 118 BoolQueryBuilder filter = QueryBuilders.boolQuery();
121 //must 119 //must
122 filter.must(sortBrandIdFilter(sortBrand)); 120 filter.must(sortBrandIdFilter(sortBrand));
123 - filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.heatValue).gt(0));  
124 //must not 121 //must not
125 filter.mustNot(notRecallFilter()); 122 filter.mustNot(notRecallFilter());
126 filter.mustNot(newFilter()); 123 filter.mustNot(newFilter());
@@ -138,7 +135,6 @@ public class ExtendFilterHelper { @@ -138,7 +135,6 @@ public class ExtendFilterHelper {
138 BoolQueryBuilder filter = QueryBuilders.boolQuery(); 135 BoolQueryBuilder filter = QueryBuilders.boolQuery();
139 //must 136 //must
140 filter.must(sortBrandIdFilter(sortBrand)); 137 filter.must(sortBrandIdFilter(sortBrand));
141 - filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.ctrValue).gt(0));  
142 //must not 138 //must not
143 filter.mustNot(notRecallFilter()); 139 filter.mustNot(notRecallFilter());
144 filter.mustNot(newFilter()); 140 filter.mustNot(newFilter());
@@ -231,7 +231,7 @@ public class WebNewShelveServiceImpl implements IWebNewShelveService, Applicatio @@ -231,7 +231,7 @@ public class WebNewShelveServiceImpl implements IWebNewShelveService, Applicatio
231 searchParam.setFiter(newFilter); 231 searchParam.setFiter(newFilter);
232 //3)构造分页参数 232 //3)构造分页参数
233 searchParam.setOffset(0); 233 searchParam.setOffset(0);
234 - searchParam.setSize(30); 234 + searchParam.setSize(60);
235 //4)构造排序 235 //4)构造排序
236 List<SortBuilder<?>> sortBuilders = new ArrayList<>(); 236 List<SortBuilder<?>> sortBuilders = new ArrayList<>();
237 sortBuilders.add(SortBuilders.fieldSort(searchSort.getSortField()).order(searchSort.getSortOrder())); 237 sortBuilders.add(SortBuilders.fieldSort(searchSort.getSortField()).order(searchSort.getSortOrder()));