| Line 189... |
Line 189... |
| 189 |
|
189 |
|
| 190 |
public JSONArray getSolrDocs(String queryTerm, String categoryId, int offset, int limit, String sort,
|
190 |
public JSONArray getSolrDocs(String queryTerm, String categoryId, int offset, int limit, String sort,
|
| 191 |
String brand, int subCategoryId, boolean hotDeal, boolean group, boolean eol_filter,
|
191 |
String brand, int subCategoryId, boolean hotDeal, boolean group, boolean eol_filter,
|
| 192 |
List<String> excludeBrands, List<Integer> hotDealCatalogIds) throws Throwable {
|
192 |
List<String> excludeBrands, List<Integer> hotDealCatalogIds) throws Throwable {
|
| 193 |
List<String> parentFilter = new ArrayList<>();
|
193 |
List<String> parentFilter = new ArrayList<>();
|
| - |
|
194 |
if (hotDealCatalogIds == null || hotDealCatalogIds.isEmpty()) {
|
| 194 |
parentFilter.add("categoryId_i:" + categoryId);
|
195 |
parentFilter.add("categoryId_i:" + categoryId);
|
| - |
|
196 |
}
|
| - |
|
197 |
// hot-deal listings are cross-category: the curated catalogId filter below is
|
| - |
|
198 |
// the scope, so no category gate (deals span phones/accessories/LEDs)
|
| 195 |
parentFilter.add("show_default_b:true");
|
199 |
parentFilter.add("show_default_b:true");
|
| 196 |
List<String> childFilter = new ArrayList<>();
|
200 |
List<String> childFilter = new ArrayList<>();
|
| 197 |
childFilter.add("itemId_i:*");
|
201 |
childFilter.add("itemId_i:*");
|
| 198 |
|
202 |
|
| 199 |
Map<String, String> params = new HashMap<>();
|
203 |
Map<String, String> params = new HashMap<>();
|