
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.
22 lines
574 B
JavaScript
22 lines
574 B
JavaScript
/* $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());
|