feat(search): use FULLTEXT index (close #2716 pr #2726)

This commit is contained in:
BoYanZh
2022-12-16 16:51:36 +08:00
committed by GitHub
parent 5a6b600ace
commit b3be9ef428
4 changed files with 39 additions and 7 deletions

View File

@ -18,6 +18,13 @@ type SearchReq struct {
PageReq
}
type SearchNodeMySQL struct {
Parent string `json:"parent" gorm:"index"`
Name string `json:"name" gorm:"index:,class:FULLTEXT"`
IsDir bool `json:"is_dir"`
Size int64 `json:"size"`
}
type SearchNode struct {
Parent string `json:"parent" gorm:"index"`
Name string `json:"name"`