| Line 762... |
Line 762... |
| 762 |
}
|
762 |
}
|
| 763 |
RestClient rc = new RestClient();
|
763 |
RestClient rc = new RestClient();
|
| 764 |
Map<String, String> params = new HashMap<>();
|
764 |
Map<String, String> params = new HashMap<>();
|
| 765 |
List<String> mandatoryQ = new ArrayList<>();
|
765 |
List<String> mandatoryQ = new ArrayList<>();
|
| 766 |
mandatoryQ.add(String.format(
|
766 |
mandatoryQ.add(String.format(
|
| 767 |
"+{!parent which=\"catalogId_i:" + StringUtils.join(webProducts, " ") + "\"} tagId_i:(%s)", StringUtils.join(TAG_IDS, " ")));
|
767 |
"+{!parent which=\"catalogId_i:(" + StringUtils.join(webProducts, " ") + ")\"} tagId_i:(%s)", StringUtils.join(TAG_IDS, " ")));
|
| 768 |
params.put("q", StringUtils.join(mandatoryQ, " "));
|
768 |
params.put("q", StringUtils.join(mandatoryQ, " "));
|
| 769 |
params.put("fl", "*, [child parentFilter=id:catalog*]");
|
769 |
params.put("fl", "*, [child parentFilter=id:catalog*]");
|
| 770 |
// params.put("sort", "create_s desc");
|
770 |
// params.put("sort", "create_s desc");
|
| 771 |
params.put("start", String.valueOf(0));
|
771 |
params.put("start", String.valueOf(0));
|
| 772 |
params.put("rows", String.valueOf(100));
|
772 |
params.put("rows", String.valueOf(100));
|