mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
recreate an index if opening it fails
This commit is contained in:
parent
99d9edfc5a
commit
72b1f5d24c
|
@ -53,9 +53,12 @@ if(!isset($_GET['action']) || $_GET['action'] == 'show') {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
||||||
|
if(!$index) {
|
||||||
|
$index = $indexconf['Indexer']::create($settings->_luceneDir);
|
||||||
if(!$index) {
|
if(!$index) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user