SEARCH-544

- Added an api to remove real-time indexing
This commit is contained in:
Keerthi Niranjan 2017-12-21 13:46:32 +05:30
parent f7b6597c1a
commit 754ffa9ad1
2 changed files with 6 additions and 0 deletions

View File

@ -220,6 +220,7 @@
});
sendMessage.addEventListener('click', function () {
search.deleteRealTimeFolder();
if (realTimeIndexing.value !== "") {
let message = realTimeIndexing.value;
search.batchRealTimeIndexing(JSON.parse(message));

View File

@ -358,6 +358,11 @@ class Search {
});
}
deleteRealTimeFolder() {
Search.deleteIndexFolders(this.realTimeIndex);
Search.indexValidator(this.realTimeIndex);
}
/**
* This the query constructor
* for the search function