diff --git a/routers/search.go b/routers/search.go index 64db86c30..f43836cc9 100644 --- a/routers/search.go +++ b/routers/search.go @@ -427,7 +427,7 @@ func searchIssue(ctx *context.Context, TableName string, Key string, Page int, P commentQuery := elastic.NewMatchQuery("comment", Key).Boost(1).QueryName("f_third") boolQ.Should(nameQuery, contentQuery, commentQuery) } - isIssueQuery := elastic.NewTermQuery("is_pull", false) + isIssueQuery := elastic.NewTermQuery("is_pull.keyword", false) boolQ.Must(isIssueQuery) res, err := client.Search(TableName).Query(boolQ).Sort(SortBy, ascending).From((Page - 1) * PageSize).Size(PageSize).Do(ctx.Req.Context()) if err == nil {