genlong 7 月之前
父节点
当前提交
82f6267f02
共有 1 个文件被更改,包括 0 次插入14 次删除
  1. 0 14
      common/component/es/es.go

+ 0 - 14
common/component/es/es.go

@@ -199,13 +199,6 @@ func (req *ESQueryRequest) parseJsonQuery() (queryMap map[string]interface{}) {
 					req.Column: req.Key,
 				},
 			},
-			"highlight": map[string]interface{}{
-				"fields": map[string]interface{}{
-					req.Column: map[string]interface{}{},
-				},
-				"pre_tags":  []string{"<span style='color:#0078E8'>"},
-				"post_tags": []string{"</span>"},
-			},
 		}
 		return
 	case MatchAllByCondition:
@@ -226,13 +219,6 @@ func (req *ESQueryRequest) parseJsonQuery() (queryMap map[string]interface{}) {
 					},
 				},
 			},
-			"highlight": map[string]interface{}{
-				"fields": map[string]interface{}{
-					req.Column: map[string]interface{}{},
-				},
-				"pre_tags":  []string{"<span style='color:#0078E8'>"},
-				"post_tags": []string{"</span>"},
-			},
 		}
 		return
 	case Match: