Subversion Repositories SmartDukaan

Rev

Rev 26788 | Rev 26846 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26788 Rev 26789
Line 216... Line 216...
216
				mandatoryQ.add(
216
				mandatoryQ.add(
217
						String.format("+(categoryId_i:%s) +(brand_ss:%s) +{!parent which=\"brand_ss:%s\"} tagId_i:(%s)",
217
						String.format("+(categoryId_i:%s) +(brand_ss:%s) +{!parent which=\"brand_ss:%s\"} tagId_i:(%s)",
218
								categoryId, brand, brand, StringUtils.join(tagIds, " ")));
218
								categoryId, brand, brand, StringUtils.join(tagIds, " ")));
219
 
219
 
220
			} else {
220
			} else {
221
				mandatoryQ.add(
221
				mandatoryQ
222
						String.format("(categoryId_i:%s) +{!parent which=\"id:catalog*\"} tagId_i:(%s)", StringUtils.join(tagIds, " ")));
222
				.add(String.format("+(subCategoryId_i:%s) +{!parent which=\"subCategoryId_i:%s\"} tagId_i:(%s)",
-
 
223
						categoryId, categoryId, StringUtils.join(tagIds, " ")));
223
			}
224
			}
224
			params.put("q", StringUtils.join(mandatoryQ, " "));
225
			params.put("q", StringUtils.join(mandatoryQ, " "));
225
			params.put("fl", "*, [child parentFilter=id:catalog*]");
226
			params.put("fl", "*, [child parentFilter=id:catalog*]");
226
			if (queryTerm == null) {
227
			if (queryTerm == null) {
227
				params.put("sort", "create_s desc");
228
				params.put("sort", "create_s desc");