diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/searchSchema.js | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/src/util/searchSchema.js b/src/util/searchSchema.js index ce0e7a84..1628dbd4 100644 --- a/src/util/searchSchema.js +++ b/src/util/searchSchema.js @@ -3,28 +3,41 @@ export function makeSearchIndexes(FlexSearch) { const indexes = { albums: new FlexSearch.Document({ - id: "reference", - index: ["name", "groups"], + id: 'reference', + index: ['name', 'groups'], }), tracks: new FlexSearch.Document({ - id: "reference", - index: ["name", "album", "artists", "additionalNames"], + id: 'reference', + + index: [ + 'name', + 'album', + 'artists', + 'additionalNames', + ], + + store: [ + 'color', + 'name', + 'albumDirectory', + 'artworkKind', + ], }), artists: new FlexSearch.Document({ - id: "reference", - index: ["names"], + id: 'reference', + index: ['names'], }), groups: new FlexSearch.Document({ - id: "reference", - index: ["name", "description", "category"], + id: 'reference', + index: ['name', 'description', 'category'], }), flashes: new FlexSearch.Document({ - id: "reference", - index: ["name", "tracks", "contributors"], + id: 'reference', + index: ['name', 'tracks', 'contributors'], }), }; |