apple hace 4 años
padre
commit
786b7623ba
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      udpdataclear/udpSensitiveWords/util/words.go

+ 1 - 4
udpdataclear/udpSensitiveWords/util/words.go

@@ -20,13 +20,10 @@ func dealWithNameScoreRules(name string) (string, bool, float64 , []map[string]i
 	query_name := old_name
 	endstr := endWordReg.FindString(query_name)
 	if endstr !="" {
-		standard_score = 3.0
+		standard_score = float64(3.0)
 		query_name = strings.ReplaceAll(query_name,endstr,"")
 	}
 
-
-
-
 	query := `{"query":{"bool":{"must":[{"query_string":{"default_field":"unique_qy.name_word","query":"` + query_name + `"}}],"must_not":[],"should":[]}},"from":"0","size":"200"}`
 	tmp := make(map[string]interface{})
 	json.Unmarshal([]byte(query), &tmp)