|
@@ -56,6 +56,7 @@ func StartExtractTestTask(taskId, startId, num, resultcoll, trackcoll string) bo
|
|
|
ext.InitAuditRecogField()
|
|
|
|
|
|
//品牌抽取
|
|
|
+ ju.IsBrandGoods = ju.Config["brandgoods"].(bool)
|
|
|
if ju.Config["brandgoods"].(bool) {
|
|
|
InitBrand()
|
|
|
InitGoods()
|
|
@@ -778,7 +779,7 @@ type FieldValue struct {
|
|
|
|
|
|
//分析抽取结果并保存
|
|
|
func AnalysisSaveResult(j *ju.Job, e *ExtractTask) {
|
|
|
- //log.Println("============", j.HasBrand, j.HasGoods, j, HasKey, j.HasTable, j.BrandData)
|
|
|
+ log.Println("============", j.HasBrand, j.HasGoods, j.HasKey, j.HasTable, j.BrandData)
|
|
|
doc := j.Data
|
|
|
result := j.Result
|
|
|
_id := qu.BsonIdToSId((*doc)["_id"])
|