| Line 261... |
Line 261... |
| 261 |
}
|
261 |
}
|
| 262 |
if (subCategoryId != 0) {
|
262 |
if (subCategoryId != 0) {
|
| 263 |
mandatoryQ.add(String.format("{!parent which=\"subCategoryId_i:%s AND child_b:true\"}tagId_i:(%s)",
|
263 |
mandatoryQ.add(String.format("{!parent which=\"subCategoryId_i:%s AND child_b:true\"}tagId_i:(%s)",
|
| 264 |
subCategoryId, StringUtils.join(tagIds, " ")));
|
264 |
subCategoryId, StringUtils.join(tagIds, " ")));
|
| 265 |
} else if (hotDeal) {
|
265 |
} else if (hotDeal) {
|
| 266 |
mandatoryQ.add(String.format("+{!parent which=\"hot_deals_b=true AND child_b:true\"}tagId_i:(%s)",
|
266 |
mandatoryQ.add(String.format("{!parent which=\"hot_deals_b=true AND child_b:true\"}tagId_i:(%s)",
|
| 267 |
StringUtils.join(tagIds, " ")));
|
267 |
StringUtils.join(tagIds, " ")));
|
| 268 |
|
268 |
|
| 269 |
} else if (StringUtils.isNotBlank(brand)) {
|
269 |
} else if (StringUtils.isNotBlank(brand)) {
|
| 270 |
mandatoryQ.add(String.format(
|
270 |
mandatoryQ.add(String.format(
|
| 271 |
"{!parent which=\"brand_ss:%s AND cateogryId_i:%s " + "AND child_b:true\"}tagId_i:(%s)", brand,
|
271 |
"{!parent which=\"brand_ss:%s AND categoryId_i:%s " + "AND child_b:true\"}tagId_i:(%s)", brand,
|
| 272 |
categoryId, StringUtils.join(tagIds, " ")));
|
272 |
categoryId, StringUtils.join(tagIds, " ")));
|
| 273 |
|
273 |
|
| 274 |
} else {
|
274 |
} else {
|
| 275 |
mandatoryQ.add(String.format("{!parent which=\"subCategoryId_i:%s\"}tagId_i:(%s) AND child_b:true",
|
275 |
mandatoryQ.add(String.format("{!parent which=\"subCategoryId_i:%s\"}tagId_i:(%s) AND child_b:true",
|
| 276 |
categoryId, StringUtils.join(tagIds, " ")));
|
276 |
categoryId, StringUtils.join(tagIds, " ")));
|