1
0
Fork 0
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:
Mzhelskiy Maxim 2010-03-06 12:02:01 +00:00
parent f53b4858ed
commit 04c407e35d

View file

@ -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(