Merge pull request #267 from keerthi16/SEARCH-544

SEARCH-544 (Re-create real-time index)
This commit is contained in:
Vikas Shashidhar 2017-12-27 13:01:43 +05:30 committed by GitHub
commit 368320f109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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