From efd5b959db59ae653e0d35b0e00fb74ac5f9a7ae Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 25 Mar 2024 21:51:52 +0100 Subject: [PATCH] Removed tag priority filter from manticore scene update query. --- src/update-search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update-search.js b/src/update-search.js index 8d7d2cf9..67bc2946 100644 --- a/src/update-search.js +++ b/src/update-search.js @@ -86,7 +86,7 @@ async function updateManticoreSceneSearch(releaseIds) { LEFT JOIN releases_tags AS local_tags ON local_tags.release_id = releases.id LEFT JOIN actors ON local_actors.actor_id = actors.id LEFT JOIN actors AS directors ON local_directors.director_id = directors.id - LEFT JOIN tags ON local_tags.tag_id = tags.id AND tags.priority >= 6 + LEFT JOIN tags ON local_tags.tag_id = tags.id LEFT JOIN tags as tags_aliases ON local_tags.tag_id = tags_aliases.alias_for AND tags_aliases.secondary = true LEFT JOIN movies_scenes ON movies_scenes.scene_id = releases.id LEFT JOIN movies ON movies.id = movies_scenes.movie_id @@ -140,7 +140,7 @@ async function updateManticoreSceneSearch(releaseIds) { actor_ids: scene.actors.map((actor) => actor.f1), actors: scene.actors.map((actor) => actor.f2).join(), tag_ids: scene.tags.map((tag) => tag.f1), - tags: scene.tags.filter((tag) => tag.f3 > 6).map((tag) => tag.f2).join(), // only make top tags searchable to minimize cluttered results + tags: flatTags.join(' '), // only make top tags searchable to minimize cluttered results movie_ids: scene.movies, meta: scene.date ? format(scene.date, 'y yy M MMM MMMM d') : undefined, stashed: scene.stashed || 0,