diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-05-13 12:10:34 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-31 12:11:53 -0300 |
commit | 6863f9ec64af7f9cf079150f3a798d7fe75b9045 (patch) | |
tree | fc56fb4aaa0eae729cc55d40f05fae184693a473 /src/util/search-spec.js | |
parent | 782a498333782d5230ad29390690a94ebc333b13 (diff) |
search: drop currently unused search specs
Diffstat (limited to 'src/util/search-spec.js')
-rw-r--r-- | src/util/search-spec.js | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/src/util/search-spec.js b/src/util/search-spec.js index 7e5b2b63..4a112a22 100644 --- a/src/util/search-spec.js +++ b/src/util/search-spec.js @@ -180,122 +180,6 @@ export const searchSpec = { 'color', ], }, - - albums: { - query: ({albumData}) => albumData, - - process: (album) => ({ - name: - album.name, - - groups: - album.groups.map(group => group.name), - }), - - index: [ - 'name', - 'groups', - ], - }, - - tracks: { - query: ({trackData}) => trackData, - - process: (track, opts) => ({ - name: - track.name, - - color: - track.color, - - album: - track.album.name, - - albumDirectory: - track.album.directory, - - artists: - track.artistContribs - .map(contrib => contrib.artist) - .flatMap(artist => [artist.name, ...artist.aliasNames]), - - additionalNames: - track.additionalNames - .map(entry => entry.name), - - artwork: - prepareArtwork(track, opts), - }), - - index: [ - 'name', - 'album', - 'artists', - 'additionalNames', - ], - - store: [ - 'color', - 'name', - 'albumDirectory', - 'artwork', - ], - }, - - artists: { - query: ({artistData}) => - artistData - .filter(artist => !artist.isAlias), - - process: (artist) => ({ - names: - [artist.name, ...artist.aliasNames], - }), - - index: [ - 'names', - ], - }, - - groups: { - query: ({groupData}) => groupData, - - process: (group) => ({ - names: group.name, - description: group.description, - // category: group.category - }), - - index: [ - 'name', - 'description', - // 'category', - ], - }, - - flashes: { - query: ({flashData}) => flashData, - - process: (flash) => ({ - name: - flash.name, - - tracks: - flash.featuredTracks - .map(track => track.name), - - contributors: - flash.contributorContribs - .map(contrib => contrib.artist) - .flatMap(artist => [artist.name, ...artist.aliasNames]), - }), - - index: [ - 'name', - 'tracks', - 'contributors', - ], - }, }; export function makeSearchIndex(descriptor, {FlexSearch}) { |