Fix terms query

This commit is contained in:
Chocobozzz 2022-02-22 10:29:15 +01:00
parent 927067139c
commit b2e255d97b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 4 deletions

View File

@ -109,10 +109,7 @@ async function queryVideos (search: VideosSearchQuery) {
if (search.tagsOneOf) { if (search.tagsOneOf) {
filter.push({ filter.push({
terms: { terms: {
'tags.raw': { tags: search.tagsOneOf.map(t => t.toLowerCase())
value: search.tagsOneOf,
case_insensitive: true
}
} }
}) })
} }