This commit is contained in:
lzh
2025-09-03 16:44:57 +08:00
parent 1102a60425
commit 9f7f0c9dd7

View File

@@ -3,7 +3,6 @@ package es
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"fmt"
"net/http" "net/http"
"time" "time"
@@ -93,8 +92,6 @@ func (e *esSearch) Search(req model.GetLogReq, filterProcessName ...string) mode
case sr.NotWildCard: case sr.NotWildCard:
notQuery = append(notQuery, elastic.NewWildcardQuery("log.keyword", "*"+v.Content+"*")) notQuery = append(notQuery, elastic.NewWildcardQuery("log.keyword", "*"+v.Content+"*"))
} }
fmt.Printf("v.Cond: %v\n", v.Cond)
fmt.Printf("v.Content: %v\n", v.Content)
} }
if req.Match.Name != "" { if req.Match.Name != "" {