We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aed7e7 commit 9a4f3d4Copy full SHA for 9a4f3d4
api/src/search/service.ts
@@ -43,6 +43,12 @@ export class SearchService {
43
});
44
};
45
46
+ public deleteAllDocuments = async (index: SearchType): Promise<void> => {
47
+ this.logger.info({ message: `Deleting all documents in ${index}` });
48
+ await this.meilisearch.index(index).deleteAllDocuments();
49
+ this.logger.info({ message: `Deleted all documents in ${index}` });
50
+ };
51
+
52
public ensureIndexes = async (): Promise<void> => {
53
await this.meilisearch.createIndex("project");
54
this.logger.info({ message: "project index created" });
0 commit comments