Add score to queried fields
This commit is contained in:
parent
5d9fa41eea
commit
352e80660e
|
@ -64,7 +64,7 @@ async function queryChannels (search: ChannelsSearchQuery) {
|
|||
{
|
||||
multi_match: {
|
||||
query: search.search,
|
||||
fields: [ 'name', 'displayName', 'description' ],
|
||||
fields: [ 'name^5', 'displayName^3', 'description' ],
|
||||
fuzziness: 'AUTO'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ async function queryVideos (search: VideosSearchQuery) {
|
|||
{
|
||||
multi_match: {
|
||||
query: search.search,
|
||||
fields: [ 'name', 'description', 'tags' ],
|
||||
fields: [ 'name^5', 'description', 'tags^3' ],
|
||||
fuzziness: 'AUTO'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue