diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-30 21:01:36 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-31 12:11:46 -0300 |
commit | b705b488b04522a0d21da989015c40461f120c6e (patch) | |
tree | 85c99cd7a321515857a900e7441633e9f1760a6d /src/util | |
parent | 188916742f82c937d114b886ef54e71d150cea44 (diff) |
client: search results behavior stub
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'], }), }; |