// Traitement des highlights $highlights = $result->getHighlights(); if (count($highlights) != 0) { $array_highlights[] = mb_convert_encoding(implode(" [...] ", $highlights['body']), "WINDOWS-1252", "UTF-8"); } else { $array_highlights[] = ""; } } // traitement des auteurs foreach ($author_ids as $author) { $authors[$author] = CMbObject::loadFromGuid("CMediusers-{$author}"); $authors[$author]->loadRefFunction(); } //traitement des contextes référents si aggregation est cochée if ($aggregate) { $objects_refs = $client_index->loadAggregationLog($results_query->getAggregations("date_log")); } } catch (Exception $e) { CAppUI::displayAjaxMsg("La requête est mal formée", UI_MSG_ERROR); mbLog($e->getMessage()); } $smarty = new CSmartyDP(); $smarty->assign("start", $start); $smarty->assign("authors", $authors); $smarty->assign("results", $array_results); $smarty->assign("highlights", $array_highlights); $smarty->assign("objects_refs", $objects_refs); $smarty->assign("time", $time); $smarty->assign("nbresult", $nbresult); $smarty->assign("words", $words); $smarty->display("inc_results_log_search.tpl");