Fix case sensitive tag search
This commit is contained in:
parent
9922da42ed
commit
927067139c
|
@ -109,7 +109,10 @@ async function queryVideos (search: VideosSearchQuery) {
|
|||
if (search.tagsOneOf) {
|
||||
filter.push({
|
||||
terms: {
|
||||
tags: search.tagsOneOf
|
||||
'tags.raw': {
|
||||
value: search.tagsOneOf,
|
||||
case_insensitive: true
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -118,7 +121,10 @@ async function queryVideos (search: VideosSearchQuery) {
|
|||
for (const t of search.tagsAllOf) {
|
||||
filter.push({
|
||||
term: {
|
||||
tags: t
|
||||
'tags.raw': {
|
||||
value: t,
|
||||
case_insensitive: true
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue