BUG 0000 "Added changes to solr" SOLVED
- Added changes to solr, according to:
https://github.com/colosa/processmaker/pull/1045/files
- Solved problem with:
php -f reindex_solr.php
* Available from version ProcessMaker-2.0.46
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2012 Colosa Inc.23
|
||||
@@ -60,13 +59,14 @@ class BpmnEngine_Services_SearchIndex
|
||||
*
|
||||
* @param [out] bool true if index service is enabled false in other case
|
||||
*/
|
||||
public function isEnabled ()
|
||||
public function isEnabled($workspace)
|
||||
{
|
||||
// require_once (ROOT_PATH .
|
||||
// '/businessLogic/modules/SearchIndexAccess/Solr.php');
|
||||
require_once ('class.solr.php');
|
||||
$solr = new BpmnEngine_SearchIndexAccess_Solr( $this->_solrIsEnabled, $this->_solrHost );
|
||||
return $solr->isEnabled();
|
||||
|
||||
return $solr->isEnabled($workspace);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -394,9 +394,9 @@ class BpmnEngine_Services_SearchIndex
|
||||
$data['aaData'][$i][] = ''; // placeholder
|
||||
} else {
|
||||
if (isset( $doc->$columnName )) {
|
||||
$data['aaData'][$i][] = $doc->$columnName;
|
||||
$data["aaData"][$i][$columnName] = $doc->$columnName;
|
||||
} else {
|
||||
$data['aaData'][$i][] = '';
|
||||
$data["aaData"][$i][$columnName] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -442,4 +442,5 @@ class BpmnEngine_Services_SearchIndex
|
||||
return $listFields;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user