We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af54e6f commit 01f3954Copy full SHA for 01f3954
lib/search.js
@@ -7,6 +7,8 @@ function Search() {
7
this.field('description' , { boost: 4 })
8
this.field('author' , { boost: 6 })
9
this.field('readme')
10
+ this.field('keywords' , { boost: 8 })
11
+
12
})
13
return self
14
}
@@ -21,8 +23,9 @@ Search.prototype.add = function(package) {
21
23
name: package.name,
22
24
description: package.description,
25
author: package._npmUser ? package._npmUser.name : '???',
26
+ keywords: (package.keywords || []).join(' '),
27
-},
28
+}
29
30
Search.prototype.remove = function(name) {
31
this.index.remove({ id: name })
0 commit comments