Fix terms query
This commit is contained in:
parent
927067139c
commit
b2e255d97b
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue