fengweiqiang 5 years ago
parent
commit
0ea2c5be74
2 changed files with 12 additions and 0 deletions
  1. 8 0
      src/jy/extract/extract.go
  2. 4 0
      src/main_blocktest.go

+ 8 - 0
src/jy/extract/extract.go

@@ -47,12 +47,16 @@ func StartExtractTestTask(taskId, startId, num, resultcoll, trackcoll string) bo
 	ext.InitSite()
 	ext.InitRulePres()
 	ext.InitRuleBacks(false)
+	ext.InitRuleBacks(true)
 	ext.InitRuleCore(false)
+	ext.InitRuleCore(true)
 	ext.InitPkgCore()
 	ext.InitBlockRule()
 	ext.InfoTypeList()
 	ext.InitTag(false)
+	ext.InitTag(true)
 	ext.InitClearFn(false)
+	ext.InitClearFn(true)
 	if ext.IsExtractCity { //版本上控制是否开始城市抽取
 		//初始化城市DFA信息
 		ext.InitCityInfo()
@@ -125,12 +129,16 @@ func StartExtractTaskId(taskId string) bool {
 	ext.InitSite()
 	ext.InitRulePres()
 	ext.InitRuleBacks(false)
+	ext.InitRuleBacks(true)
 	ext.InitRuleCore(false)
+	ext.InitRuleCore(true)
 	ext.InitPkgCore()
 	ext.InitBlockRule()
 	ext.InfoTypeList()
 	ext.InitTag(false)
+	ext.InitTag(true)
 	ext.InitClearFn(false)
+	ext.InitClearFn(true)
 	if ext.IsExtractCity { //版本上控制是否开始城市抽取
 		//初始化城市DFA信息
 		//ext.InitCityDFA()

+ 4 - 0
src/main_blocktest.go

@@ -79,11 +79,15 @@ func com(doc map[string]interface{}) {
 	e.InitSite()
 	e.InitRulePres()
 	e.InitRuleBacks(false)
+	e.InitRuleBacks(true)
 	e.InitRuleCore(false)
+	e.InitRuleCore(true)
 	e.InitBlockRule()
 	e.InitPkgCore()
 	e.InitTag(false)
+	e.InitTag(true)
 	e.InitClearFn(false)
+	e.InitClearFn(true)
 	if e.IsExtractCity { //版本上控制是否开始城市抽取
 		//初始化城市DFA信息
 		e.InitCityDFA()