xingzai 2 سال پیش
والد
کامیت
150dbcda34
1فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 4 6
      services/elastic.go

+ 4 - 6
services/elastic.go

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