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