diff --git a/search2.php b/search2.php index 6ec3162..3107aa8 100644 --- a/search2.php +++ b/search2.php @@ -263,7 +263,9 @@ class SearchDispatcher extends KTStandardDispatcher { function do_refreshLuceneStats() { - session_unregister('LuceneStats'); + $indexer = Indexer::get(); + $indexer->updateIndexStats(); + redirect(KTUtil::kt_url().'/dashboard.php'); } diff --git a/templates/ktcore/search2/lucene_statistics.smarty b/templates/ktcore/search2/lucene_statistics.smarty index e6dae9b..ea310ad 100644 --- a/templates/ktcore/search2/lucene_statistics.smarty +++ b/templates/ktcore/search2/lucene_statistics.smarty @@ -69,11 +69,11 @@ toggle.style.display = 'none';
| {i18n}Refresh{/i18n} | +|
| * | {i18n}To get the best performance out of Document Indexer, the indexes must be optimised periodically. This is managed by a background task. Please see the KnowledgeTree Administrator's Manual for more information.{/i18n} {/if} |