| Line 378... |
Line 378... |
| 378 |
|
378 |
|
| 379 |
}
|
379 |
}
|
| 380 |
|
380 |
|
| 381 |
catalogObj.put("categoryId", CATEGORY_MASTER.contains(item.getCategoryId()) ? item.getCategoryId() : 6);
|
381 |
catalogObj.put("categoryId", CATEGORY_MASTER.contains(item.getCategoryId()) ? item.getCategoryId() : 6);
|
| 382 |
|
382 |
|
| 383 |
if (item.getCategoryId() == 10006) {
|
383 |
if (item.getCategoryId() == 10006 || item.getCategoryId() == 10007) {
|
| 384 |
catalogObj.put("categoryId", 3);
|
384 |
catalogObj.put("categoryId", 3);
|
| 385 |
}
|
385 |
}
|
| 386 |
catalogObj.put("subCategoryId", item.getCategoryId());
|
386 |
catalogObj.put("subCategoryId", item.getCategoryId());
|
| 387 |
catalogObj.put("create_timestamp",
|
387 |
catalogObj.put("create_timestamp",
|
| 388 |
tagListing.getCreatedTimestamp().atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
388 |
tagListing.getCreatedTimestamp().atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
| Line 756... |
Line 756... |
| 756 |
}
|
756 |
}
|
| 757 |
catalogSolrObj.setField("brand_ss", brands);
|
757 |
catalogSolrObj.setField("brand_ss", brands);
|
| 758 |
|
758 |
|
| 759 |
// Category
|
759 |
// Category
|
| 760 |
catalogSolrObj.setField("categoryId_i", CATEGORY_MASTER.contains(firstItem.getCategoryId())
|
760 |
catalogSolrObj.setField("categoryId_i", CATEGORY_MASTER.contains(firstItem.getCategoryId())
|
| 761 |
? ((firstItem.getCategoryId() == 10006) ? 3 : firstItem.getCategoryId()) : 6);
|
761 |
? ((firstItem.getCategoryId() == 10006 || firstItem.getCategoryId() == 10007) ? 3 : firstItem.getCategoryId()) : 6);
|
| 762 |
catalogSolrObj.setField("subCategoryId_i", firstItem.getCategoryId());
|
762 |
catalogSolrObj.setField("subCategoryId_i", firstItem.getCategoryId());
|
| 763 |
|
763 |
|
| 764 |
// Timestamps and labels
|
764 |
// Timestamps and labels
|
| 765 |
catalogSolrObj.setField("create_s", firstTagListing.getCreatedTimestamp()
|
765 |
catalogSolrObj.setField("create_s", firstTagListing.getCreatedTimestamp()
|
| 766 |
.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
766 |
.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
|