We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472e078 commit eda3b69Copy full SHA for eda3b69
1 file changed
models/article.go
@@ -14,5 +14,5 @@ type ArticleDetail struct {
14
CreateAt *time.Time `json:"createAt" gorm:"autoCreateTime;"`
15
UpdateAt *time.Time `json:"updateAt" gorm:"autoUpdateTime;"`
16
Author string `json:"author"`
17
- Content string `json:"content" gorm:"type:TEXT;index:ft_content"`
+ Content string `json:"content" gorm:"type:TEXT;index:ft_content,fulltext"`
18
}
0 commit comments