Subversion Repositories SmartDukaan

Rev

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

Rev 34049 Rev 34136
Line 443... Line 443...
443
                int itemId = itemEntry.getKey();
443
                int itemId = itemEntry.getKey();
444
                Map<String, Object> itemMap = (Map<String, Object>) itemEntry.getValue();
444
                Map<String, Object> itemMap = (Map<String, Object>) itemEntry.getValue();
445
                List<TagListing> tags = (List<TagListing>) itemMap.get("tagPricing");
445
                List<TagListing> tags = (List<TagListing>) itemMap.get("tagPricing");
446
                SolrInputDocument itemObj = new SolrInputDocument();
446
                SolrInputDocument itemObj = new SolrInputDocument();
447
 
447
 
448
                for (TagListing taglist : tags) {
448
                for (TagListing tagListing : tags) {
449
                    active = active || taglist.isActive();
449
                    active = active || tagListing.isActive();
450
                    itemObj.setField("id", "itemtag-" + itemId + "-" + taglist.getTagId());
450
                    itemObj.setField("id", "itemtag-" + itemId + "-" + tagListing.getTagId());
451
                    itemObj.setField("color_s", itemMap.get("color"));
451
                    itemObj.setField("color_s", itemMap.get("color"));
452
                    itemObj.setField("itemId_i", itemId);
452
                    itemObj.setField("itemId_i", itemId);
453
                    itemObj.setField("tagId_i", taglist.getTagId());
453
                    itemObj.setField("tagId_i", tagListing.getTagId());
454
                    itemObj.setField("mrp_f", taglist.getMrp());
454
                    itemObj.setField("mrp_f", tagListing.getMrp());
455
                    itemObj.setField("mop_f", taglist.getMop());
455
                    itemObj.setField("mop_f", tagListing.getMop());
456
                    itemObj.setField("sellingPrice_f", taglist.getSellingPrice());
456
                    itemObj.setField("sellingPrice_f", tagListing.getSellingPrice());
457
                    itemObj.setField("active_b", taglist.isActive());
457
                    itemObj.setField("active_b", tagListing.isActive());
458
                    itemObj.setField("hot_deal_b", taglist.isHotDeals());
458
                    itemObj.setField("hot_deal_b", tagListing.isHotDeals());
459
                    mop = taglist.getMop();
459
                    mop = tagListing.getMop();
460
                    dp = taglist.getSellingPrice();
460
                    dp = tagListing.getSellingPrice();
461
                }
461
                }
462
                itemObjs.add(itemObj);
462
                itemObjs.add(itemObj);
463
            }
463
            }
464
 
464
 
465
            SolrInputDocument catalogSolrObj = new SolrInputDocument();
465
            SolrInputDocument catalogSolrObj = new SolrInputDocument();