Subversion Repositories SmartDukaan

Rev

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

Rev 24947 Rev 24948
Line 208... Line 208...
208
						String.format("+(subCategoryId_i:%s) +{!parent which=\"subCategoryId_i:%s\"} tagId_i:(%s)",
208
						String.format("+(subCategoryId_i:%s) +{!parent which=\"subCategoryId_i:%s\"} tagId_i:(%s)",
209
								subCategoryId, subCategoryId, StringUtils.join(tagIds, " ")));
209
								subCategoryId, subCategoryId, StringUtils.join(tagIds, " ")));
210
			} else if (queryTerm != null) {
210
			} else if (queryTerm != null) {
211
				mandatoryQ.add(
211
				mandatoryQ.add(
212
						String.format("+(*:%s)",
212
						String.format("+(*:%s)",
213
								queryTerm, queryTerm, StringUtils.join(tagIds, " ")));
213
								queryTerm, StringUtils.join(tagIds, " ")));
214
			} else if (hotDeal) {
214
			} else if (hotDeal) {
215
				mandatoryQ.add(String.format("+{!parent which=\"hot_deals_b=true\"} tagId_i:(%s)",
215
				mandatoryQ.add(String.format("+{!parent which=\"hot_deals_b=true\"} tagId_i:(%s)",
216
						StringUtils.join(tagIds, " ")));
216
						StringUtils.join(tagIds, " ")));
217
			} else {
217
			} else {
218
				mandatoryQ.add(
218
				mandatoryQ.add(