feat: search in WebUI now is more flexible, searching in all relevant fields in the current view

This commit is contained in:
Deluan
2020-03-19 22:26:18 -04:00
parent 32fbf2e9eb
commit 8401d85f78
6 changed files with 25 additions and 6 deletions
+3
View File
@@ -25,6 +25,9 @@ func NewArtistRepository(ctx context.Context, o orm.Ormer) model.ArtistRepositor
r.ormer = o
r.indexGroups = utils.ParseIndexGroups(conf.Server.IndexGroups)
r.tableName = "artist"
r.filterMappings = map[string]filterFunc{
"name": fullTextFilter,
}
return r
}