Subversion Repositories SmartDukaan

Rev

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

Rev 24036 Rev 24037
Line 188... Line 188...
188
			RestClient rc = new RestClient();
188
			RestClient rc = new RestClient();
189
			Map<String, String> params = new HashMap<>();
189
			Map<String, String> params = new HashMap<>();
190
			List<String> mandatoryQ = new ArrayList<>();
190
			List<String> mandatoryQ = new ArrayList<>();
191
			if (brand != null) {
191
			if (brand != null) {
192
 
192
 
193
				mandatoryQ.add(String.format("+(categoryId_i:%s) +(brand_s:%s) +{!parent which=\"brand_s:%s\"} tagId_i:(%s)", categoryId, brand, brand,
193
				mandatoryQ.add(String.format("+(categoryId_i:%s) +(brand_ss:%s) +{!parent which=\"brand_ss:%s\"} tagId_i:(%s)", categoryId, brand, brand,
194
						StringUtils.join(tagIds, " ")));
194
						StringUtils.join(tagIds, " ")));
195
			} else if (hotDeal) {
195
			} else if (hotDeal) {
196
				mandatoryQ.add(String.format("+{!parent which=\"hot_deals_b=true\"} tagId_i:(%s)",
196
				mandatoryQ.add(String.format("+{!parent which=\"hot_deals_b=true\"} tagId_i:(%s)",
197
						StringUtils.join(tagIds, " ")));
197
						StringUtils.join(tagIds, " ")));
198
			} else {
198
			} else {