Browse Source

联系人、电话优化

maxiaoshan 5 years ago
parent
commit
af34cf04d9

+ 1 - 1
src/main_blocktest.go

@@ -51,7 +51,7 @@ func all() {
 }
 func one() {
 	m := mongodbutil.MgoFactory(3, 3, 120, "127.0.0.1:27092", "extract_kf")
-	d, _ := m.FindById("bidding_data", "5e34e8f550b5ea296ed0deeb", extract.Fields)
+	d, _ := m.FindById("bidding_data", "5c442fa4a5cb26b9b7f52f70", extract.Fields)
 	com(*d)
 }
 func com(doc map[string]interface{}) {

+ 44 - 3
src/res/fieldscore.json

@@ -308,7 +308,7 @@
             }
         ]
     },
-    "buyerperson": {
+	"agencyperson": {
         "type": "string",
         "positivewords": [
             {
@@ -344,7 +344,48 @@
             }
         ]
     },
-	"buyerperson": {
+   	"agencytel": {
+        "type": "string",
+        "positivewords": [],
+        "negativewords": [
+            {
+                "describe": "出现中文汉字",
+                "regstr": "[\\u4e00-\\u9fa5]",
+                "score": -10
+            },  {
+                "describe": "包含负分",
+                "regstr": "(详见公告)",
+                "score": -10
+            }
+        ],
+        "length": [
+            {
+                "describe": "[gt,lte,score]",
+                "range": [
+                    0,
+                    6,
+                    -5
+                ]
+            },
+            {
+                "describe": "[gt,lte,score]",
+                "range": [
+                    6,
+                    14,
+                    3
+                ]
+            },
+            {
+                "describe": "[gt,∞,score]",
+                "range": [
+                    14,
+                    -1,
+                    -1
+                ]
+            }
+        ]
+    },
+    "buyerperson": {
         "type": "string",
         "positivewords": [
             {
@@ -380,7 +421,7 @@
             }
         ]
     },
-    "buyertel": {
+ 	"buyertel": {
         "type": "string",
         "positivewords": [],
         "negativewords": [

+ 2 - 1
src/res/specialsymbols.json

@@ -5,7 +5,8 @@
             "buyer": true,
             "winner": true,
             "agency": true,
-			"buyerperson":true
+		"buyerperson":true,
+		"agencyperson":true
         },
         "symbol": [
 			{

+ 1 - 1
src/web/templates/admin/result_list.html

@@ -81,7 +81,7 @@ $(function () {
 		"searching"   : true,
 		"ordering"    : false,
 		"info"        : true,
-		"autoWidth"   : false,
+		"autoWidth"   : true,
 		"serverSide"  : true,
 		"ajax": {
 			"url": "/admin/resulttrack/list",