|
@@ -176,6 +176,7 @@ func JsonDataMergeProcessing(j *util.Job, e *ExtractTask) map[string][]*util.Ext
|
|
|
score := util2.Float64All(ranges[2])
|
|
|
if valueLen > gt && valueLen <= lte {
|
|
|
v[i].Score += score
|
|
|
+ v[i].ScoreItem = append(v[i].ScoreItem, &util.ScoreItem{Des: "JsonData长度打分", Code: fmt.Sprint(gt, "<", valueLen, "<=", lte), ScoreFrom: "fieldscore.json.length", Value: tmpsvalue.Value, Score: score})
|
|
|
break
|
|
|
}
|
|
|
}
|
|
@@ -191,6 +192,7 @@ func JsonDataMergeProcessing(j *util.Job, e *ExtractTask) map[string][]*util.Ext
|
|
|
reg := p["regexp"].(*regexp.Regexp)
|
|
|
if reg.MatchString(util2.ObjToString(tmpsvalue.Value)) {
|
|
|
v[i].Score += util2.Float64All(p["score"])
|
|
|
+ v[i].ScoreItem = append(v[i].ScoreItem, &util.ScoreItem{Des: "JsonData负面词打分" + fmt.Sprint(p["describe"]), Code: "negativewords", RuleText: reg.String(), ScoreFrom: "fieldscore.json.negativewords", Value: tmpsvalue.Value, Score: util2.Float64All(p["score"])})
|
|
|
}
|
|
|
}
|
|
|
}, func(err interface{}) {
|
|
@@ -208,6 +210,7 @@ func JsonDataMergeProcessing(j *util.Job, e *ExtractTask) map[string][]*util.Ext
|
|
|
reg := p["regexp"].(*regexp.Regexp)
|
|
|
if reg.MatchString(util2.ObjToString(tmpsvalue.Value)) {
|
|
|
v[i].Score += util2.Float64All(p["score"])
|
|
|
+ v[i].ScoreItem = append(v[i].ScoreItem, &util.ScoreItem{Des: "Jsondata正面词打分" + fmt.Sprint(p["describe"]), Code: "positivewords", RuleText: reg.String(), ScoreFrom: "fieldscore.json.positivewords", Value: tmpsvalue.Value, Score: util2.Float64All(p["score"])})
|
|
|
}
|
|
|
}
|
|
|
}, func(err interface{}) {
|