fengweiqiang 6 жил өмнө
parent
commit
8099ab719f

+ 6 - 0
src/jy/pretreated/analytable.go

@@ -858,6 +858,12 @@ func (tn *Table) AnalyTables(contactFormat *u.ContactFormat) []*Table {
 				//过滤、标准化、合并kv,table.StandKV,table.StandKVWeight
 				table.KVFilter()
 			}
+			if len(table.StandKV) == 0{
+				for k,v := range table.SortKV.Map{
+					table.StandKV[k] = fmt.Sprint(v)
+					table.StandKVWeight[k] = -999
+				}
+			}
 			for k, v := range table.StandKV { //过滤后的标准化kv
 				if table.TableResult.SortKV.Map[k] == nil || table.StandKVWeight[k] > table.TableResult.SortKVWeight[k] {
 					table.TableResult.SortKV.AddKey(k, v)

+ 1 - 1
src/res/fieldscore.json

@@ -209,7 +209,7 @@
         "length": [
             {
                 "describe": "长度打分min>val:-1,min<=val<=max:1,max<val:-1",
-                "min": 3,
+                "min": 4,
                 "max": 30,
                 "score": [
                     -5,