Commit 210be7ef authored by lixiaofang's avatar lixiaofang

同步商品的suoyin

parent e81a0cbc
......@@ -10,17 +10,17 @@
"update_time_val":{"type":"long"},//更新时间
"is_deleted":{"type":"boolean"}, //是否被删除
"price":{"type":"double"}, //价格
"cn_name_pre":{"type":"string","index":"not_analyzed"}, //商品名称
"en_name_pre":{"type": "string", "index": "not_analyzed"}, //商品原名
"alias":{"type": "string", "index": "not_analyzed"},
"description":{"type":"string","analyzer":"keyword","search_analyzer":"keyword"},
"cn_name_pre":{"type": "text", "index": "false"}, //商品名称
"en_name_pre":{"type": "text", "index": "false"}, //商品原名
"alias":{"type": "text", "index": "false"},
"description":{"type":"text","analyzer":"keyword","search_analyzer":"keyword"},
"have_image":{"type":"boolean"},
"comment_nums":{"type":"long"},
"brand_cn_name":{"type":"string","index":"not_analyzed"}, //所属品牌名称
"brand_en_name":{"type":"string","index":"not_analyzed"}, //所属品牌原名
"brand_alias":{"type":"string","index":"not_analyzed"}, //所属品牌别名
"category_cn_name":{"type":"string","index":"not_analyzed"}, //所属类目的名称
"effect_cn_name":{"type":"string","index":"not_analyzed"}//所属功效的名称
"brand_cn_name":{"type": "text", "index": "false"}, //所属品牌名称
"brand_en_name":{"type": "text", "index": "false"}, //所属品牌原名
"brand_alias":{"type": "text", "index": "false"}, //所属品牌别名
"category_cn_name":{"type": "text", "index": "false"}, //所属类目的名称
"effect_cn_name":{"type": "text", "index": "false"}//所属功效的名称
}
}
......
......@@ -20,8 +20,8 @@ class ProductTransfer(object):
res["is_deleted"] = instance.is_deleted
res["create_time"] = tzlc(instance.create_time)
res["update_time"] = tzlc(instance.update_time)
res["create_time_val"] = int(time.mktime(pictorial_id.get("create_time", None).timetuple()))
res["update_time_val"] = int(time.mktime(pictorial_id.get("update_time", None).timetuple()))
res["create_time_val"] = int(time.mktime(instance.create_time.timetuple()))
res["update_time_val"] = int(time.mktime(instance.update_time.timetuple()))
res["price"] = instance.price
res["cn_name_pre"] = instance.cn_name
res["en_name_pre"] = instance.en_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment