Browse Source

no message

xingzai 2 years ago
parent
commit
eef5529f54
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/elastic.go

+ 2 - 2
services/elastic.go

@@ -1067,7 +1067,7 @@ func EsArticleSearch(keyWord string, startSize, pageSize int, orderColumn string
 		//样式 红色
 		"post_tags":     []interface{}{"</font>"},
 		"pre_tags":      []interface{}{"<font color='red'>"},
-		"fragment_size": 30,
+		"fragment_size": 50,
 	}
 
 	mustMap = append(mustMap, map[string]interface{}{
@@ -1331,7 +1331,7 @@ func EsArticleSearchBody(keyWord string, startSize, pageSize int, orderColumn st
 		//样式 红色
 		"post_tags":     []interface{}{"</font>"},
 		"pre_tags":      []interface{}{"<font color='red'>"},
-		"fragment_size": 30,
+		"fragment_size": 50,
 	}
 
 	mustMap = append(mustMap, map[string]interface{}{