Subversion Repositories SmartDukaan

Rev

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

Rev 31695 Rev 31709
Line 667... Line 667...
667
 
667
 
668
			if (webProducts.size() == 0) {
668
			if (webProducts.size() == 0) {
669
				return new ArrayList<>();
669
				return new ArrayList<>();
670
			}
670
			}
671
 
671
 
672
			mandatoryQ.add(String.format("+{!parent which=\"catalogId_i:" + StringUtils.join(webProducts, " ")
672
			mandatoryQ.add(String.format(
673
					+ "\"} AND active_b:true"));
673
					"+{!parent which=\"catalogId_i:" + StringUtils.join(webProducts, " ") + "\"} AND active_b:true"));
674
 
674
 
675
		}
675
		}
676
		params.put("q", StringUtils.join(mandatoryQ, " "));
676
		params.put("q", StringUtils.join(mandatoryQ, " "));
677
		params.put("fl", "*, [child parentFilter=id:catalog* childFilter=active_b:true ]");
677
		params.put("fl", "*, [child parentFilter=id:catalog* childFilter=active_b:true ]");
678
 
678
 
Line 804... Line 804...
804
 
804
 
805
			if (doc.has("label_ss")) {
805
			if (doc.has("label_ss")) {
806
				logger.info("label {}", doc.getJSONArray("label_ss"));
806
				logger.info("label {}", doc.getJSONArray("label_ss"));
807
 
807
 
808
				JSONArray arr = doc.getJSONArray("label_ss");
808
				JSONArray arr = doc.getJSONArray("label_ss");
809
				List<String> labels = new ArrayList<String>();
809
				Set<String> labels = new HashSet<String>();
810
				for (int j = 0; j < arr.length(); j++) {
810
				for (int j = 0; j < arr.length(); j++) {
811
					labels.add(arr.getString(j));
811
					labels.add(arr.getString(j));
812
				}
812
				}
813
 
813
 
814
				fofoCatalogResponse.setLabels(labels);
814
				fofoCatalogResponse.setLabels(new ArrayList<>(labels));
815
 
815
 
816
			}
816
			}
817
 
817
 
818
			if (doc.has("_childDocuments_")) {
818
			if (doc.has("_childDocuments_")) {
819
				String modelColorClass = "grey";
819
				String modelColorClass = "grey";