|
@@ -1375,7 +1375,11 @@ func funcAnalysis(j *ju.Job) (*map[string]interface{}, map[string][]*ju.ExtField
|
|
|
if len(fmt.Sprint(v.Value)) < 1 {
|
|
|
continue //去除空串
|
|
|
}
|
|
|
- fieldValue[fmt.Sprint(v.Value)+v.Type] = []interface{}{v.Score, v.Value}
|
|
|
+ if fieldValue[fmt.Sprint(v.Value)+v.Type] == nil{
|
|
|
+ fieldValue[fmt.Sprint(v.Value)+v.Type] = []interface{}{v.Score, v.Value}
|
|
|
+ }else if fieldValue[fmt.Sprint(v.Value)+v.Type][0].(float64) < v.Score {
|
|
|
+ fieldValue[fmt.Sprint(v.Value)+v.Type][0] = v.Score
|
|
|
+ }
|
|
|
}
|
|
|
} else { //不走打分,按出现频次
|
|
|
for _, v := range val {
|