mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 16:06:51 +08:00
1
This commit is contained in:
@@ -85,8 +85,9 @@ func (e *esSearch) Search(req model.GetLogReq, filterProcessName ...string) mode
|
|||||||
switch v.Cond {
|
switch v.Cond {
|
||||||
case sr.Match:
|
case sr.Match:
|
||||||
queryList = append(queryList, elastic.NewMatchQuery("log", v.Content))
|
queryList = append(queryList, elastic.NewMatchQuery("log", v.Content))
|
||||||
|
queryList = append(queryList, elastic.NewMatchPhraseQuery("log", v.Content))
|
||||||
case sr.NotMatch:
|
case sr.NotMatch:
|
||||||
notQuery = append(notQuery, elastic.NewMatchQuery("log", v.Content))
|
notQuery = append(notQuery, elastic.NewMatchPhraseQuery("log", v.Content))
|
||||||
case sr.WildCard:
|
case sr.WildCard:
|
||||||
queryList = append(queryList, elastic.NewWildcardQuery("log.keyword", "*"+v.Content+"*"))
|
queryList = append(queryList, elastic.NewWildcardQuery("log.keyword", "*"+v.Content+"*"))
|
||||||
case sr.NotWildCard:
|
case sr.NotWildCard:
|
||||||
|
Reference in New Issue
Block a user