VIVO-873 Adapt the client code to the new interface.

Create a bridge implementation of SearchIndexerImpl that just wraps around an old IndexBuilder.

Modify client code:
Application, BasicAuthenticator, SearchServiceController, SparqlUpdateApiController,
UpdateUrisInIndex and VClassGroupCache

Rewrite IndexController to use AJAX and to show the current status and history of the indexer events.
This commit is contained in:
Jim Blake 2015-01-07 16:18:41 -05:00
parent 3bc42c1456
commit 2ceab6e3df
21 changed files with 1038 additions and 204 deletions

View file

@ -0,0 +1,22 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
/*
Functions for use by searchIndex.ftl
*/
function updateSearchIndexerStatus() {
$.ajax({
url: searchIndexerStatusUrl,
dataType: "html",
complete: function(xhr, status) {
updatePanelContents(xhr.responseText);
setTimeout(updateSearchIndexerStatus,5000);
}
});
}
function updatePanelContents(contents) {
document.getElementById("searchIndexerStatus").innerHTML = contents;
}
$(document).ready(updateSearchIndexerStatus());