summaryrefslogtreecommitdiff
path: root/bucky/search/search.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-14 23:59:08 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-14 23:59:08 +0100
commit0541e7d7457d646dceca375b7fa6e1f382232772 (patch)
tree7a4ae50aa3c09b421c5fe2baab550f35a5e45cbd /bucky/search/search.js
parent6cedbcf2987a74a01ddbe6abe0fed15fd1595e27 (diff)
tf-idf to the rescue!!
Diffstat (limited to 'bucky/search/search.js')
-rw-r--r--bucky/search/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/search/search.js b/bucky/search/search.js
index 1236a4c..1a56f53 100644
--- a/bucky/search/search.js
+++ b/bucky/search/search.js
@@ -49,7 +49,7 @@ function search (query, start, limit) {
score.thread = score.thread || parseInt(result.thread)
score.comment = score.comment || parseInt(result.comment)
score.file = score.file || parseInt(result.file)
- score.strength += result.strength
+ score.strength += parseFloat(result.strength)
score.count += 1
})
})