This commit is contained in:
2024-11-17 01:27:23 +08:00
parent 200a6b2842
commit bec2c9075b
2 changed files with 3 additions and 2 deletions

View File

@@ -668,7 +668,7 @@ func NewSchema(config Config) (graphql.Schema, error) {
if p.Args["tags"] != nil {
tags := strings.Split(strings.ReplaceAll(p.Args["tags"].(string), " ", ""), ",")
for _, tag := range tags {
query = query.Where(goqu.L("MATCH(web_images.images_tags) AGAINST (? IN NATURAL LANGUAGE MODE)", tag))
query = query.Where(goqu.L("MATCH(web_images.tags) AGAINST (? IN NATURAL LANGUAGE MODE)", tag))
}
}