maxiaoshan 5 years ago
parent
commit
877da3b3f1

+ 1 - 1
src/res/fieldscore.json

@@ -291,7 +291,7 @@
         "negativewords": [
             {
                 "describe": "包含负分",
-                "regstr": "(原因|未知|收费|标注|负责人|联系(人|电话)|邀请书|公开|本次|指定|定点|签订|文件|评标|诉讼|投诉|号|吨|成交|结果|采购|浏览器|下载|进行|加强|详(见|情)|现将|签字|身份证|我中心|测试|终止|名称|证书|单元)",
+                "regstr": "(原因|未知|收费|标注|负责人|联系(人|电话)|邀请书|公开|本次|指定|定点|签订|文件|评标|诉讼|投诉|号|吨|成交|结果|浏览器|下载|进行|加强|详(见|情)|现将|签字|身份证|我中心|测试|终止|名称|证书|单元)",
                 "score": -10
             },
             {

+ 5 - 3
udpcreateindex/src/biddingall.go

@@ -66,9 +66,6 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
 	var compare bson.M
 	bnil := false
 	for tmp := make(map[string]interface{}); query.Next(tmp); n++ {
-		if deldata := qutil.IntAll(tmp["del"]); deldata == 1 { //临时:重复数据不生索引
-			continue
-		}
 		update := map[string]interface{}{}
 		del := map[string]interface{}{} //记录extract没有值而bidding中有值的字段
 		//对比方法----------------
@@ -177,6 +174,11 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
 			for tk, tv := range update {
 				tmp[tk] = tv
 			}
+			if tmp["supervisorrate"] != nil { //临时处理supervisorrate抽取类型为string不生索引
+				if _, ok := tmp["supervisorrate"].(string); ok { //supervisorrate数据为string类型
+					delete(tmp, "supervisorrate")
+				}
+			}
 			//对projectscope字段的索引处理
 			ps, _ := tmp["projectscope"].(string)
 			//			if ps == "" {

+ 1 - 0
udpcreateindex/src/bidingpurchasing.go

@@ -38,6 +38,7 @@ func biddingPurchaingTask(q map[string]interface{}) {
 	for tmp := make(map[string]interface{}); query.Next(tmp); i = i + 1 {
 		n++
 		if util.IntAll(tmp["extracttype"]) == -1 { //重复数据不生索引
+			tmp = make(map[string]interface{})
 			continue
 		}
 		newTmp := map[string]interface{}{} //最终生索引的数据