diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-14 23:59:08 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-14 23:59:08 +0100 |
| commit | 0541e7d7457d646dceca375b7fa6e1f382232772 (patch) | |
| tree | 7a4ae50aa3c09b421c5fe2baab550f35a5e45cbd /bucky/search/search.js | |
| parent | 6cedbcf2987a74a01ddbe6abe0fed15fd1595e27 (diff) | |
tf-idf to the rescue!!
Diffstat (limited to 'bucky/search/search.js')
| -rw-r--r-- | bucky/search/search.js | 2 |
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 }) }) |
