From 2e37eae3ca3538b43de41b5f8d45348200dcc080 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Wed, 3 Sep 2025 16:52:16 +0800 Subject: [PATCH] 1 --- internal/app/search/es/es.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/search/es/es.go b/internal/app/search/es/es.go index d0eb105..bdad391 100644 --- a/internal/app/search/es/es.go +++ b/internal/app/search/es/es.go @@ -83,7 +83,7 @@ func (e *esSearch) Search(req model.GetLogReq, filterProcessName ...string) mode for _, v := range sr.QueryStringAnalysis(req.Match.Log) { switch v.Cond { case sr.Match: - queryList = append(queryList, elastic.NewMatchQuery("log", v.Content)) + queryList = append(queryList, elastic.NewMatchQuery("log", v.Content).Boost(2)) queryList = append(queryList, elastic.NewMatchPhraseQuery("log", v.Content)) case sr.NotMatch: notQuery = append(notQuery, elastic.NewMatchPhraseQuery("log", v.Content))