Compare commits

...

6 commits

Author SHA1 Message Date
Thomas Zarebczan
1e18efa5a9
Merge pull request #183 from ykris45/patch-1
Update LICENSE
2020-02-03 17:09:09 -05:00
YULIUS KURNIAWAN KRISTIANTO
af6b17a6a7
Update LICENSE 2020-02-03 05:57:30 +07:00
Niko
0173661042
Merge pull request #182 from lbryio/dependabot/npm_and_yarn/handlebars-4.5.3
Bump handlebars from 4.1.2 to 4.5.3
2020-01-02 15:41:21 -05:00
dependabot[bot]
bad9b3b2c2
Bump handlebars from 4.1.2 to 4.5.3
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-29 13:09:10 +00:00
Mark Beamer Jr
5c68e32abb Strip @ prefix subquery
Signed-off-by: Mark Beamer Jr <markbeamerjr@gmail.com>
2019-11-20 16:14:04 -05:00
Niko
34df58e967
Merge pull request #158 from lbryio/chainquery-db-connection
use DB connector instead of web API
2019-10-31 20:57:52 +01:00
3 changed files with 13 additions and 4 deletions

View file

@ -1,6 +1,6 @@
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:

6
package-lock.json generated
View file

@ -5336,9 +5336,9 @@
"dev": true
},
"handlebars": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz",
"integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==",
"version": "4.5.3",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz",
"integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==",
"requires": {
"neo-async": "^2.6.0",
"optimist": "^0.6.1",

View file

@ -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 = () => {
let queries = [];
@ -271,6 +279,7 @@ function getResults (input) {
conBoost,
funcScoreClaimWeight,
funcScoreChannelWeight,
channelIdentifier,
],
'must': [
...dynamicFilters(),