From c7c8b8e8e62aaf78e2a31c557528b295dbe13820 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 6 May 2024 13:24:37 -0300 Subject: search: index track/album groups in generic --- src/util/search-spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/search-spec.js b/src/util/search-spec.js index d8ae936e..2cdbffa7 100644 --- a/src/util/search-spec.js +++ b/src/util/search-spec.js @@ -64,6 +64,13 @@ export const searchSpec = { .map(contrib => contrib.artist) .flatMap(artist => [artist.name, ...artist.aliasNames]), + groups: + (Object.hasOwn(thing, 'groups') + ? thing.groups.map(group => group.name) + : Object.hasOwn(thing, 'album') + ? thing.album.groups.map(group => group.name) + : []), + artwork: prepareArtwork(thing), }), @@ -72,6 +79,7 @@ export const searchSpec = { 'primaryName', 'additionalNames', 'contributors', + 'groups', ], store: [ -- cgit 1.3.0-6-gf8a5