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
+1
View File
@@ -24,6 +24,7 @@ func NewAlbumRepository(ctx context.Context, o orm.Ormer) model.AlbumRepository
"artist": "compilation asc, album_artist asc, name asc",
}
r.filterMappings = map[string]filterFunc{
"name": fullTextFilter,
"compilation": booleanFilter,
}