Add no linguistic content to languages boost
This commit is contained in:
parent
65295a804a
commit
477fd984cf
|
@ -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`
|
||||
]
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue