Subversion Repositories SmartDukaan

Rev

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

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