@@ -957,6 +957,10 @@ func extRegCoreToResult(extfrom, text string, tag *map[string]bool, j *ju.Job, v
if extfrom == "title" {
item.Score = 4
}
+ if strings.Contains(val,"\n"){
+ item.Score -=1
+ exfield.Score-=1
+ }
if tmp["scoreitem"] == nil {
sitems := make([]*ju.ScoreItem, 0)
sitems = append(sitems, &item)
@@ -583,6 +583,12 @@ func (table *Table) MergerToTableresult() {
if table.TableResult.SortKV.Map[k] == nil {
table.TableResult.SortKV.AddKey(k, v) //父集
} else {
+ if k == "项目编号"{
+ reg := regexp.MustCompile("[\u4e00-\u9fa5]")
+ if reg.MatchString(v){
+ continue
table.TableResult.SortKV.ReplaceKey(k, v, k)
table.TableResult.SortKVWeight[k] = table.StandKVWeight[k]