summaryrefslogtreecommitdiff
path: root/lib/search/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search/index.js')
-rw-r--r--lib/search/index.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/search/index.js b/lib/search/index.js
index 8d209e6..27f436f 100644
--- a/lib/search/index.js
+++ b/lib/search/index.js
@@ -35,8 +35,16 @@ var STOPWORDS = new Set(
);
function find_term(term) {
- bdb.get(term)
-
+ var matches = bdb.get(term).split(",").map((s) => {
+ var partz = s.split(" ")
+ var match = {
+ thread: s[0],
+ comment: s[1],
+ file: s[2],
+ strength: s[3],
+ }
+ })
+ return matches
}
function search (query, start, limit) {