diff --git a/server/lib/meilisearch/meilisearch-videos.ts b/server/lib/meilisearch/meilisearch-videos.ts index 8e953ab..568dac8 100644 --- a/server/lib/meilisearch/meilisearch-videos.ts +++ b/server/lib/meilisearch/meilisearch-videos.ts @@ -52,6 +52,9 @@ export async function queryVideos (search: VideosSearchQuery) { logger.debug({ filter }, 'Will query Meilisearch for videos.') + const boostLanguages = search.boostLanguages || [] + boostLanguages.push('zxx') // No linguistic content + const result = await client.index(CONFIG.MEILISEARCH.INDEXES.VIDEOS).search(search.search, { offset: search.start, limit: search.count, @@ -60,7 +63,7 @@ export async function queryVideos (search: VideosSearchQuery) { filter: [ ...filter, - `language.id IN ${buildInValuesArray(search.boostLanguages)} OR language.id IS NULL` + `language.id IN ${buildInValuesArray(boostLanguages)} OR language.id IS NULL` ] })