| Line 576... |
Line 576... |
| 576 |
RestClient rc = new RestClient();
|
576 |
RestClient rc = new RestClient();
|
| 577 |
Map<String, String> params = new HashMap<>();
|
577 |
Map<String, String> params = new HashMap<>();
|
| 578 |
List<String> mandatoryQ = new ArrayList<>();
|
578 |
List<String> mandatoryQ = new ArrayList<>();
|
| 579 |
|
579 |
|
| 580 |
if (webListing.getType().equals(WebListingType.solr)) {
|
580 |
if (webListing.getType().equals(WebListingType.solr)) {
|
| 581 |
mandatoryQ.add(String.format("+{!parent which=\"" + webListing.getSolrQuery() + "\"} tagId_i:(%s)",
|
581 |
mandatoryQ.add(String.format("+{!parent which=" + webListing.getSolrQuery() + "}"));
|
| 582 |
StringUtils.join(TAG_IDS, " ")));
|
- |
|
| 583 |
|
582 |
|
| 584 |
} else {
|
583 |
} else {
|
| 585 |
List<Integer> webProducts = webProductListingRepository
|
584 |
List<Integer> webProducts = webProductListingRepository
|
| 586 |
.selectAllByWebListingId(webListing.getId(), Integer.parseInt(offset), Integer.parseInt(limit))
|
585 |
.selectAllByWebListingId(webListing.getId(), Integer.parseInt(offset), Integer.parseInt(limit))
|
| 587 |
.stream().filter(x -> x.getRank() > 0).map(x -> x.getEntityId()).collect(Collectors.toList());
|
586 |
.stream().filter(x -> x.getRank() > 0).map(x -> x.getEntityId()).collect(Collectors.toList());
|