Compare commits
6 commits
chainquery
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
1e18efa5a9 | ||
|
af6b17a6a7 | ||
|
0173661042 | ||
|
bad9b3b2c2 | ||
|
5c68e32abb | ||
|
34df58e967 |
3 changed files with 13 additions and 4 deletions
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2017-2019 LBRY Inc
|
Copyright (c) 2017-2020 LBRY Inc
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
|
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -5336,9 +5336,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"handlebars": {
|
"handlebars": {
|
||||||
"version": "4.1.2",
|
"version": "4.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz",
|
||||||
"integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==",
|
"integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"neo-async": "^2.6.0",
|
"neo-async": "^2.6.0",
|
||||||
"optimist": "^0.6.1",
|
"optimist": "^0.6.1",
|
||||||
|
|
|
@ -98,6 +98,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 = [];
|
||||||
|
@ -271,6 +279,7 @@ function getResults (input) {
|
||||||
conBoost,
|
conBoost,
|
||||||
funcScoreClaimWeight,
|
funcScoreClaimWeight,
|
||||||
funcScoreChannelWeight,
|
funcScoreChannelWeight,
|
||||||
|
channelIdentifier,
|
||||||
],
|
],
|
||||||
'must': [
|
'must': [
|
||||||
...dynamicFilters(),
|
...dynamicFilters(),
|
||||||
|
|
Loading…
Reference in a new issue