Subversion Repositories SmartDukaan

Rev

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

Rev 35547 Rev 35797
Line 81... Line 81...
81
    @Value("${reportico.url}")
81
    @Value("${reportico.url}")
82
    private String reporticoUrl;
82
    private String reporticoUrl;
83
 
83
 
84
    private static final Logger logger = LogManager.getLogger(FofoSolr.class);
84
    private static final Logger logger = LogManager.getLogger(FofoSolr.class);
85
 
85
 
86
    private static final List<Integer> CATEGORY_MASTER = Arrays.asList(10006, 10010, 14202, 14203);
86
    private static final List<Integer> CATEGORY_MASTER = Arrays.asList(10006, 10007, 10010, 14202, 14203);
87
 
87
 
88
    private static String getUrlContent(String urlString) {
88
    private static String getUrlContent(String urlString) {
89
        BufferedReader reader = null;
89
        BufferedReader reader = null;
90
        try {
90
        try {
91
            URL url = new URL(urlString);
91
            URL url = new URL(urlString);
Line 740... Line 740...
740
        }
740
        }
741
        catalogSolrObj.setField("brand_ss", brands);
741
        catalogSolrObj.setField("brand_ss", brands);
742
 
742
 
743
        // Category
743
        // Category
744
        catalogSolrObj.setField("categoryId_i", CATEGORY_MASTER.contains(firstItem.getCategoryId())
744
        catalogSolrObj.setField("categoryId_i", CATEGORY_MASTER.contains(firstItem.getCategoryId())
745
                ? (firstItem.getCategoryId() == 10006 ? 3 : firstItem.getCategoryId()) : 6);
745
                ? ((firstItem.getCategoryId() == 10006) ? 3 : firstItem.getCategoryId()) : 6);
746
        catalogSolrObj.setField("subCategoryId_i", firstItem.getCategoryId());
746
        catalogSolrObj.setField("subCategoryId_i", firstItem.getCategoryId());
747
 
747
 
748
        // Timestamps and labels
748
        // Timestamps and labels
749
        catalogSolrObj.setField("create_s", firstTagListing.getCreatedTimestamp()
749
        catalogSolrObj.setField("create_s", firstTagListing.getCreatedTimestamp()
750
                .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
750
                .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());