Changeset 1637


Ignore:
Timestamp:
Oct 4, 2010, 3:18:34 AM (10 years ago)
Author:
teymour
Message:

Gestion des parlementaires avec -

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1634 r1637  
    6969      }
    7070    }
     71
    7172    //Récupère les résultats auprès de SolR
    7273    $params = array('hl'=>'true', 'fl' => 'id,object_id,object_name,date,description', 'hl.fragsize'=>500, "facet"=>"true", "facet.field"=>array("object_name","tag"), "facet.date" => "date", "facet.date.start"=>"2007-05-01T00:00:00Z", "facet.date.end"=>"NOW", "facet.date.gap"=>"+1MONTH", 'fq' => $fq, "facet.date.include" => "edge");
     
    280281    }
    281282    if ($p = $request->getParameter('slug')) {
    282       $add .= '&tag=parlementaire='.preg_replace('/\-/', '+', $p);
     283      $parlementaire = Doctrine::getTable('Parlementaire')->findBySlug($p);
     284      $add .= '&tag=parlementaire='.$parlementaire;
    283285    }
    284286    return $this->redirect('solr/search?query='.$request->getParameter('query').$add);
Note: See TracChangeset for help on using the changeset viewer.