BUG 9180 Correct Solr update and counters implementation

The following changes were made:
- fix update Solr index process
- implement casesenuLoader using Solr server to display counters
- fix cron missing reference to system class
- add function and classes documentation
This commit is contained in:
Herbert Saal Gutierrez
2012-05-29 17:07:53 -04:00
parent 485d14d03e
commit 5cf35c71d9
7 changed files with 304 additions and 74 deletions

View File

@@ -73,7 +73,7 @@ class Cases {
//get Solr initialization variables
if(($solrConf = System::solrEnv()) !== false){
G::LoadClass('AppSolr');
$appSolr = new AppSolr($solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance']);
$this->appSolr = new AppSolr($solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance']);
}
}
@@ -843,7 +843,6 @@ class Cases {
*/
function updateCase($sAppUid, $Fields = array()) {
try {
$aApplicationFields = $Fields['APP_DATA'];
$Fields['APP_UID'] = $sAppUid;
@@ -929,7 +928,9 @@ class Cases {
}
//Update Solr Index
if($this->appSolr != null)
{
$this->appSolr->updateApplicationSearchIndex($sAppUid);
}
return $Fields;
}