diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js
index c10a99cf0..248a3fef7 100644
--- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js
+++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js
@@ -801,6 +801,7 @@ function newSuperalgosDocSpace() {
if (checkAddCommand() === undefined) { return }
if (checkDeleteCommand() === undefined) { return }
+ if (checkUReIndexCommand() === undefined) { return }
renderSearchResultsPage()
@@ -944,6 +945,27 @@ function newSuperalgosDocSpace() {
}
}
+ function checkUReIndexCommand() {
+ if (command.toLowerCase() === 'help reindex') {
+ renderCommandResultsPage(
+ [
+ "Reindex command syntax: ",
+ "Option 1: Reindex",
+ "Use this command after you modified the Docs content and would like re-index the information so that changes are reflected during search. You can also use this command after you have modified the current workspace and you would like it's nodes to be re-indexed to reflect the changes at the search results. Naturally, the system will re-index all the available information every time you switch workspaces or you refresh the UI page.",
+ "Expect this command execution to last for a minute or so, depending on the size of the workspace."
+ ]
+ )
+ return
+ }
+ if (command.indexOf('Reindex') !== 0 && command.indexOf('reindex') !== 0) { return 'Not Reindex Command' }
+
+ docsIndex = []
+ setUpWorkspaceSchemas()
+ setUpSearchEngine()
+
+ renderCommandResultsPage(["Succesfully rebuild the search engine indexes."])
+ }
+
function addNode(project, type) {
let template = {
type: type,