Esempio n. 1
0
$contexte = CValue::get("contexte");
$user = CMediusers::get();
if (in_array("CPrescriptionLineMedicament", $names_types)) {
    $names_types[] = "CPrescriptionLineMix";
    $names_types[] = "CPrescriptionLineElement";
}
// Données nécessaires pour la recherche
$client_index = new CSearch();
$client_log = new CSearchLog();
$client_index->createClient();
$client_log->createClient();
// Journalisation de la recherche
$group = CGroups::loadCurrent();
if ($words && CAppUI::conf("search indexing active_indexing_log", $group)) {
    try {
        $client_log->log($names_types, $contexte, $user->_id, $words, $aggregate);
    } catch (Exception $e) {
        CAppUI::displayAjaxMsg("La requête ne peut pas être journalisée", UI_MSG_WARNING);
        mbLog($e->getMessage());
    }
}
// Recherche fulltext
$time = 0;
$nbresult = 0;
$array_results = array();
$array_highlights = array();
$array_aggregation = array();
$objects_refs = array();
$authors = array();
$author_ids = array();
$patients = array();