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: {
|
multi_match: {
|
||||||
query: search.search,
|
query: search.search,
|
||||||
fields: [ 'name', 'displayName', 'description' ],
|
fields: [ 'name^5', 'displayName^3', 'description' ],
|
||||||
fuzziness: 'AUTO'
|
fuzziness: 'AUTO'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ async function queryVideos (search: VideosSearchQuery) {
|
||||||
{
|
{
|
||||||
multi_match: {
|
multi_match: {
|
||||||
query: search.search,
|
query: search.search,
|
||||||
fields: [ 'name', 'description', 'tags' ],
|
fields: [ 'name^5', 'description', 'tags^3' ],
|
||||||
fuzziness: 'AUTO'
|
fuzziness: 'AUTO'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue