|
@@ -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());
|