mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
- use new config variable _luceneClassDir
This commit is contained in:
parent
4742dce09d
commit
17f7770b55
|
@ -37,12 +37,12 @@ UI::globalNavigation();
|
|||
UI::pageNavigation(getMLText('fulltext_info'));
|
||||
UI::contentContainerStart();
|
||||
if($settings->_enableFullSearch) {
|
||||
if(!empty($settings->_luceneDir))
|
||||
require_once($settings->_luceneDir.'/Lucene.php');
|
||||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
|
||||
$index = Zend_Search_Lucene::open($settings->_indexPath);
|
||||
$index = Zend_Search_Lucene::open($settings->_luceneDir);
|
||||
|
||||
$terms = $index->terms();
|
||||
echo "<p>".count($terms)." Terms</p>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user