|
|
# 1. DB部分
|
|
|
- yhb_search新建suggest_conversion表
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `suggest_conversion`;
|
|
|
CREATE TABLE `suggest_conversion` (
|
|
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自动增长的唯一主键',
|
...
|
...
|
@@ -11,12 +12,16 @@ |
|
|
UNIQUE KEY `IDX_SUGGEST_CONVERSION_SOURCE` (`source`)
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
- yhb_search新建spider_content表并从测试环境导入爬虫数据
|
|
|
|
|
|
|
|
|
SQL文件见附件 spider_content_20170313.sql
|
|
|
|
|
|
|
|
|
- yhb_search和yhb_operations新建suggest_conversion_custom表
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `suggest_conversion_custom`;
|
|
|
CREATE TABLE `suggest_conversion_custom` (
|
|
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自动增长的唯一主键',
|
...
|
...
|
@@ -28,6 +33,7 @@ |
|
|
UNIQUE KEY `IDX_SUGGEST_CONVERSION_SOURCE` (`source`)
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
# 2. Canal部分
|
|
|
- operations文件夹里面增加监听suggest_conversion_custom表
|
|
|
|
...
|
...
|
|