aboutsummaryrefslogtreecommitdiff
path: root/src/server/Search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Search.ts')
-rw-r--r--src/server/Search.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/Search.ts b/src/server/Search.ts
index f9babc433..7d8602346 100644
--- a/src/server/Search.ts
+++ b/src/server/Search.ts
@@ -24,4 +24,15 @@ export class Search {
const docIds = docs.map((doc: any) => doc._id);
return docIds;
}
+
+ public async clear() {
+ return rp.post(this.url + "dash/update", {
+ body: {
+ delete: {
+ query: "*:*"
+ }
+ },
+ json: true
+ });
+ }
} \ No newline at end of file