fix(log-center): 修复 demo 数据源、ES 502、查询页关联

This commit is contained in:
attacker committed 2026-06-27 07:14:54 +00:00
1 parent c624ca5b4a
commit 36bd0a6155
3 files changed
+27 -13

No files matched your search

+3 -1
View File
@@ -137,7 +137,9 @@ func (h *LogProxyHandler) QueryES(c *gin.Context) {
if searchBody == nil {
searchBody = map[string]interface{}{
"size": req.Size,
"sort": []map[string]interface{}{{"@timestamp": map[string]string{"order": "desc"}}},
"sort": []interface{}{
map[string]interface{}{"_score": map[string]string{"order": "desc"}},
},
"query": map[string]interface{}{
"bool": map[string]interface{}{
"must": []interface{}{