isEnabledByName('bx_elasticsearch')) { $oModule = BxDolModule::getInstance('bx_elasticsearch'); bx_import('Search', $oModule->_aModule); $sClass = 'BxElsSearch'; } $o = new $sClass(bx_get('section')); $o->setLiveSearch(bx_get('live_search') ? 1 : 0); $o->setMetaType(bx_process_input(bx_get('type'))); $o->setCategoryObject(bx_process_input(bx_get('cat'))); $s = $o->response(); if (!$s) $s = $o->getEmptyResult(); header('Content-type: text/html; charset=utf-8'); echo $s; /** @} */