mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
fix Sphinx
This commit is contained in:
parent
f53b4858ed
commit
04c407e35d
|
@ -58,8 +58,7 @@ class LsSphinx extends Module {
|
|||
* используем кеширование при поиске
|
||||
*/
|
||||
$cacheKey = Config::Get('module.search.entity_prefix')."searchResult_{$sObjType}_{$sTerms}_{$iOffset}_{$iLimit}";
|
||||
if (false === ($data = $this->Cache_Get($cacheKey))) {
|
||||
$this->InitSphinx();
|
||||
if (false === ($data = $this->Cache_Get($cacheKey))) {
|
||||
/**
|
||||
* Параметры поиска
|
||||
*/
|
||||
|
@ -68,6 +67,7 @@ class LsSphinx extends Module {
|
|||
/**
|
||||
* Устанавливаем атрибуты поиска
|
||||
*/
|
||||
$this->oSphinx->ResetFilters();
|
||||
if(!is_null($aExtraFilters)){
|
||||
foreach($aExtraFilters AS $sAttribName => $sAttribValue){
|
||||
$this->oSphinx->SetFilter(
|
||||
|
|
Loading…
Reference in a new issue