Authored by hugufei

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

... ... @@ -91,7 +91,6 @@ public class ExtendFilterHelper {
*/
public static QueryBuilder commonHeatValueFilter() {
BoolQueryBuilder filter = QueryBuilders.boolQuery();
filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.heatValue).gt(0));
//must not
filter.mustNot(notRecallFilter());
return filter;
... ... @@ -104,7 +103,6 @@ public class ExtendFilterHelper {
*/
public static QueryBuilder commonCtrValueFilter() {
BoolQueryBuilder filter = QueryBuilders.boolQuery();
filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.ctrValue).gt(0));
//must not
filter.mustNot(notRecallFilter());
return filter;
... ... @@ -120,7 +118,6 @@ public class ExtendFilterHelper {
BoolQueryBuilder filter = QueryBuilders.boolQuery();
//must
filter.must(sortBrandIdFilter(sortBrand));
filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.heatValue).gt(0));
//must not
filter.mustNot(notRecallFilter());
filter.mustNot(newFilter());
... ... @@ -138,7 +135,6 @@ public class ExtendFilterHelper {
BoolQueryBuilder filter = QueryBuilders.boolQuery();
//must
filter.must(sortBrandIdFilter(sortBrand));
filter.must(QueryBuilders.rangeQuery(ProductIndexEsField.ctrValue).gt(0));
//must not
filter.mustNot(notRecallFilter());
filter.mustNot(newFilter());
... ...
... ... @@ -231,7 +231,7 @@ public class WebNewShelveServiceImpl implements IWebNewShelveService, Applicatio
searchParam.setFiter(newFilter);
//3)构造分页参数
searchParam.setOffset(0);
searchParam.setSize(30);
searchParam.setSize(60);
//4)构造排序
List<SortBuilder<?>> sortBuilders = new ArrayList<>();
sortBuilders.add(SortBuilders.fieldSort(searchSort.getSortField()).order(searchSort.getSortOrder()));
... ...