|
@@ -328,8 +328,34 @@
|
|
|
},
|
|
|
"projectcode": {
|
|
|
"type": "string",
|
|
|
- "positivewords": [],
|
|
|
+ "positivewords": [
|
|
|
+ {
|
|
|
+ "describe": "有关键字加分",
|
|
|
+ "regstr": "(财采|招字|财购){1}",
|
|
|
+ "score": 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "describe": "号结尾加分",
|
|
|
+ "regstr": ".{4,35}(号)$",
|
|
|
+ "score": 3
|
|
|
+ }
|
|
|
+ ],
|
|
|
"negativewords": [
|
|
|
+ {
|
|
|
+ "describe": "纯数字减分",
|
|
|
+ "regstr": "^\\d{8,}$",
|
|
|
+ "score": -1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "describe": "纯大写英文字母",
|
|
|
+ "regstr": "^[A-Z]{5,}$",
|
|
|
+ "score": -0.2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "describe": "中文汉字大于5个",
|
|
|
+ "regstr": "[\\u4e00-\\u9fa5]{5,}",
|
|
|
+ "score": -2
|
|
|
+ },
|
|
|
{
|
|
|
"describe": "全为中文汉字或符号",
|
|
|
"regstr": "^[\\u4e00-\\u9fa5()()【】\\[\\],,。、::《》]+$",
|
|
@@ -337,7 +363,7 @@
|
|
|
},
|
|
|
{
|
|
|
"describe": "以一个汉字以上结束",
|
|
|
- "regstr": "[\\u4e00-\\u9fa5]{1,}$",
|
|
|
+ "regstr": "[\\u4e00-\\u9fa5/]{1,}$",
|
|
|
"score": -1
|
|
|
},
|
|
|
{
|
|
@@ -364,14 +390,14 @@
|
|
|
"describe": "[gt,lte,score]",
|
|
|
"range": [
|
|
|
4,
|
|
|
- 35,
|
|
|
+ 36,
|
|
|
3
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"describe": "[gt,∞,score]",
|
|
|
"range": [
|
|
|
- 35,
|
|
|
+ 36,
|
|
|
-1,
|
|
|
-1
|
|
|
]
|