Compare commits
1 commit
master
...
strip_pref
Author | SHA1 | Date | |
---|---|---|---|
|
e7c97e8420 |
1 changed files with 9 additions and 0 deletions
|
@ -80,6 +80,14 @@ function getResults (input) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
// Try prefix query without an @ if it exists
|
||||||
|
const channelIdentifier = {
|
||||||
|
'prefix': {
|
||||||
|
'name': {
|
||||||
|
'value': escapedQuery.replace(/^@/gi, ''), 'boost': 50,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const splitName = () => {
|
const splitName = () => {
|
||||||
let queries = [];
|
let queries = [];
|
||||||
|
@ -253,6 +261,7 @@ function getResults (input) {
|
||||||
conBoost,
|
conBoost,
|
||||||
funcScoreClaimWeight,
|
funcScoreClaimWeight,
|
||||||
funcScoreChannelWeight,
|
funcScoreChannelWeight,
|
||||||
|
channelIdentifier,
|
||||||
],
|
],
|
||||||
'must': [
|
'must': [
|
||||||
channelSearch,
|
channelSearch,
|
||||||
|
|
Loading…
Reference in a new issue