Commit 9d6801cb527260d460d4415e80ab09e5534dcc0c
Merge pull request #187 from ssbc/ssb-search
Use ssb-search instead of ssb-fulltext. Super fast!mix irving authored on 4/1/2018, 3:29:25 AM
GitHub committed on 4/1/2018, 3:29:25 AM
Parent: 574f6c0bba4fe737aa2d99154b42255b8e468848
Parent: f270e45df298136c105532714d821c861d26eea0
Files changed
README.md | changed |
app/page/search.js | changed |
background-process.js | changed |
package.json | changed |
README.md | ||
---|---|---|
@@ -47,9 +47,9 @@ | ||
47 | 47 … | |
48 | 48 … | # then in another tab (these must be separate commands) |
49 | 49 … | sbot plugins.install ssb-about |
50 | 50 … | sbot plugins.install ssb-backlinks |
51 | -sbot plugins.install ssb-fulltext # for faster searches | |
51 … | +sbot plugins.install ssb-search # for search | |
52 | 52 … | sbot plugins.install ssb-chess-db # for chess |
53 | 53 … | sbot plugins.install ssb-private # for private messages |
54 | 54 … | |
55 | 55 … | After that you need to make sure that .ssb/config reads: "ssb-chess-db": "ssbChessIndex" for chess to work. |
app/page/search.js | |||
---|---|---|---|
@@ -126,9 +126,9 @@ | |||
126 | 126 … | Scroller(container, content, renderMsg, true, false) | |
127 | 127 … | ) | |
128 | 128 … | ||
129 | 129 … | pull( | |
130 | - api.sbot.pull.stream(sbot => next(sbot.fulltext.search, {query, reverse: true, limit: 500, live: false})), | ||
130 … | + api.sbot.pull.stream(sbot => next(sbot.search.query, {query, limit: 500 })), | ||
131 | 131 … | fallback((err) => { | |
132 | 132 … | if (err === true) { | |
133 | 133 … | search.fulltext.isDone.set(true) | |
134 | 134 … | } else if (/^no source/.test(err.message)) { |
background-process.js | ||
---|---|---|
@@ -16,9 +16,9 @@ | ||
16 | 16 … | .use(require('scuttlebot/plugins/local')) |
17 | 17 … | .use(require('scuttlebot/plugins/logging')) |
18 | 18 … | .use(require('ssb-query')) |
19 | 19 … | .use(require('ssb-about')) |
20 | - .use(require('ssb-fulltext')) | |
20 … | + .use(require('ssb-search')) | |
21 | 21 … | // .use(require('ssb-ebt')) |
22 | 22 … | .use(require('ssb-ws')) |
23 | 23 … | .use(require('ssb-chess-db')) |
24 | 24 … |
package.json | ||
---|---|---|
@@ -81,9 +81,9 @@ | ||
81 | 81 … | "ssb-chess": "^2.2.4", |
82 | 82 … | "ssb-chess-db": "^1.0.2", |
83 | 83 … | "ssb-client": "^4.5.2", |
84 | 84 … | "ssb-friends": "^2.2.3", |
85 | - "ssb-fulltext": "^1.0.1", | |
85 … | + "ssb-search": "^1.0.1", | |
86 | 86 … | "ssb-horcrux": "^0.1.3", |
87 | 87 … | "ssb-keys": "^7.0.13", |
88 | 88 … | "ssb-mentions": "^0.4.1", |
89 | 89 … | "ssb-mutual": "^0.1.0", |
Built with git-ssb-web