====== map_suggestions ====== Host: **sg02.picalike.corpex-kunden.de** Git: **playground_silvia** (maybe move it?) ===== Dependencies ===== * v3legacy.mongo.replica * extractor.misc.categorizer ===== Description ===== Suggests picalike categories for mapping customer categories. ==== Details ==== Runs as cronjob on sg02 every hour and processes feeds that were updated in the last hour. Every product that does not have a picalike category is categorized. For a customer category c_cat, a picalike category p_cat is suggested, if p_cat contains at least 60% of the products in c_cat. Moreover, if a macro category (fashion, furniture, vehicles, home-textiles) contains at least 60% of the products in c_cat, visual is set to true. Information is saved in the Mongo Settings collection pci_mappingSuggestions and retrieved via the /get_mapping api. ===== Possible improvement ===== Separate categorization from suggestion, so that the latter can be run on already categorized products. ==== Work in progress ==== **add_cat_color** checks the feeds that were updated in the last hour and provides picalike category and picalike color to new products **daily_map_suggestion** checks the feeds that were updated in the last day and updates pci_mappingSuggestions