Commit e849a4e5a3cb824dc569015662ecf689684d88da
1 parent
74b50b71
KTS-673
"The search algorithm needs some work" Updated. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7221 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
19 additions
and
3 deletions
config/dmsDefaults.php
| @@ -295,7 +295,7 @@ class KTInit { | @@ -295,7 +295,7 @@ class KTInit { | ||
| 295 | } | 295 | } |
| 296 | if (KTUtil::arrayGet($_SERVER, 'REQUEST_METHOD')) { | 296 | if (KTUtil::arrayGet($_SERVER, 'REQUEST_METHOD')) { |
| 297 | require_once(KT_LIB_DIR . '/dispatcher.inc.php'); | 297 | require_once(KT_LIB_DIR . '/dispatcher.inc.php'); |
| 298 | - $oDispatcher =& new KTErrorDispatcher($oError); | 298 | + $oDispatcher =new KTErrorDispatcher($oError); |
| 299 | $oDispatcher->dispatch(); | 299 | $oDispatcher->dispatch(); |
| 300 | } else { | 300 | } else { |
| 301 | print $oError->toString() . "\n"; | 301 | print $oError->toString() . "\n"; |
| @@ -305,7 +305,7 @@ class KTInit { | @@ -305,7 +305,7 @@ class KTInit { | ||
| 305 | // }}} | 305 | // }}} |
| 306 | 306 | ||
| 307 | // {{{ handlePHPError() | 307 | // {{{ handlePHPError() |
| 308 | - function handlePHPError($code, $message, $file, $line) { | 308 | + static function handlePHPError($code, $message, $file, $line) { |
| 309 | global $default; | 309 | global $default; |
| 310 | 310 | ||
| 311 | /* Map the PHP error to a Log priority. */ | 311 | /* Map the PHP error to a Log priority. */ |
| @@ -446,11 +446,27 @@ class KTInit { | @@ -446,11 +446,27 @@ class KTInit { | ||
| 446 | $oKTConfig->setdefaultns('cache', 'proxyCacheDirectory', '${varDirectory}/proxies'); | 446 | $oKTConfig->setdefaultns('cache', 'proxyCacheDirectory', '${varDirectory}/proxies'); |
| 447 | $oKTConfig->setdefaultns('cache', 'proxyCacheEnabled', 'true'); | 447 | $oKTConfig->setdefaultns('cache', 'proxyCacheEnabled', 'true'); |
| 448 | 448 | ||
| 449 | + $oKTConfig->setdefaultns('search', 'searchBasePath', '${fileSystemRoot}/search2'); | ||
| 450 | + $oKTConfig->setdefaultns('search', 'fieldsPath', '${searchBasePath}/search/fields'); | ||
| 451 | + $oKTConfig->setdefaultns('search', 'resultsPerPage', 25); | ||
| 452 | + $oKTConfig->setdefaultns('search', 'dateFormat', 'Y-m-d'); | ||
| 453 | + | ||
| 454 | + $oKTConfig->setdefaultns('indexer', 'coreClass', 'PHPLuceneIndexer'); | ||
| 455 | + $oKTConfig->setdefaultns('indexer', 'batchDocuments', 20); | ||
| 456 | + $oKTConfig->setdefaultns('indexer', 'indexingBasePath', '${searchBasePath}/indexing'); | ||
| 457 | + $oKTConfig->setdefaultns('indexer', 'luceneDirectory', '${varDirectory}/indexes'); | ||
| 458 | + $oKTConfig->setdefaultns('indexer', 'extractorPath', '${indexingBasePath}/extractors'); | ||
| 459 | + $oKTConfig->setdefaultns('indexer', 'extractorHookPath', '${indexingBasePath}/extractorHooks'); | ||
| 460 | + | ||
| 461 | + $oKTConfig->setdefaultns('openoffice', 'host', 'localhost'); | ||
| 462 | + $oKTConfig->setdefaultns('openoffice', 'port', 8100); | ||
| 463 | + | ||
| 449 | $oKTConfig->setdefaultns('webservice', 'uploadDirectory', '${varDirectory}/uploads'); | 464 | $oKTConfig->setdefaultns('webservice', 'uploadDirectory', '${varDirectory}/uploads'); |
| 450 | $oKTConfig->setdefaultns('webservice', 'downloadUrl', '${rootUrl}/ktwebservice/download.php'); | 465 | $oKTConfig->setdefaultns('webservice', 'downloadUrl', '${rootUrl}/ktwebservice/download.php'); |
| 451 | $oKTConfig->setdefaultns('webservice', 'uploadExpiry', '30'); | 466 | $oKTConfig->setdefaultns('webservice', 'uploadExpiry', '30'); |
| 452 | $oKTConfig->setdefaultns('webservice', 'downloadExpiry', '30'); | 467 | $oKTConfig->setdefaultns('webservice', 'downloadExpiry', '30'); |
| 453 | $oKTConfig->setdefaultns('webservice', 'randomKeyText', 'bkdfjhg23yskjdhf2iu'); | 468 | $oKTConfig->setdefaultns('webservice', 'randomKeyText', 'bkdfjhg23yskjdhf2iu'); |
| 469 | + $oKTConfig->setdefaultns('webservice', 'debug', false); | ||
| 454 | 470 | ||
| 455 | $oKTConfig->setdefaultns('clientToolPolicies', 'explorerMetadataCapture', true); | 471 | $oKTConfig->setdefaultns('clientToolPolicies', 'explorerMetadataCapture', true); |
| 456 | $oKTConfig->setdefaultns('clientToolPolicies', 'officeMetadataCapture', true); | 472 | $oKTConfig->setdefaultns('clientToolPolicies', 'officeMetadataCapture', true); |
| @@ -605,6 +621,6 @@ if ($checkup !== true) { | @@ -605,6 +621,6 @@ if ($checkup !== true) { | ||
| 605 | } | 621 | } |
| 606 | 622 | ||
| 607 | require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); | 623 | require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); |
| 608 | -$GLOBALS['main'] =& new KTPage(); | 624 | +$GLOBALS['main'] =new KTPage(); |
| 609 | 625 | ||
| 610 | ?> | 626 | ?> |