|
@@ -960,7 +960,7 @@ class ElasticsearchDelegator {
|
|
|
return this.updateOrInsertPageById(page._id);
|
|
return this.updateOrInsertPageById(page._id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async syncPageDeleted(pages, user) {
|
|
|
|
|
|
|
+ async syncPageDeletedCompletely(pages, user) {
|
|
|
for (let i = 0; i < pages.length; i++) {
|
|
for (let i = 0; i < pages.length; i++) {
|
|
|
logger.debug('SearchClient.syncPageDeleted', pages[i].path);
|
|
logger.debug('SearchClient.syncPageDeleted', pages[i].path);
|
|
|
}
|
|
}
|
|
@@ -973,6 +973,19 @@ class ElasticsearchDelegator {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ async syncPageDeleted(pages, user) {
|
|
|
|
|
+ for (let i = 0; i < pages.length; i++) {
|
|
|
|
|
+ logger.debug('SearchClient.syncPageDeleted', pages[i].path);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ try {
|
|
|
|
|
+ return await this.deletePages([pages]);
|
|
|
|
|
+ }
|
|
|
|
|
+ catch (err) {
|
|
|
|
|
+ logger.error('deletePages:ES Error', err);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
async syncBookmarkChanged(pageId) {
|
|
async syncBookmarkChanged(pageId) {
|
|
|
logger.debug('SearchClient.syncBookmarkChanged', pageId);
|
|
logger.debug('SearchClient.syncBookmarkChanged', pageId);
|
|
|
|
|
|