Merge pull request #576 from herbertsg/BUG-9689

Bug 9689 Improve Solr performance
This commit is contained in:
julceslauhub
2012-09-18 12:23:14 -07:00

View File

@@ -563,7 +563,16 @@ class AppSolr
}
elseif ($action == 'search') {
// get all the indexes
$delIndexes = $this->getApplicationDelegationsIndex ($appUID);
//$delIndexes = $this->getApplicationDelegationsIndex ($appUID);
$indexes = $this->aaSearchRecords ($aaappsDBData, array (
'APP_UID' => $appUID
));
foreach ($indexes as $index) {
$delIndexes[] = $aaappsDBData [$index]['DEL_INDEX'];
}
}
else {
//error an index must always be defined
@@ -600,6 +609,14 @@ class AppSolr
foreach ($indexes as $index) {
$row = $aaappsDBData [$index];
}
if(!isset($row))
{
$fh = fopen("SolrAppWhitoutDelIndex.txt", 'a') or die("can't open file to store Solr search time.");
fwrite($fh, sprintf("Solr AppUid: %s DelIndex: %s not found.\r\n", $appUID, $delIndex));
fclose($fh);
continue;
}
//$row = $this->getAppDelegationData ($appUID, $delIndex);
$aRow ['APP_FINISH_DATE'] = null;