correction configuration
This commit is contained in:
parent
a2568e417b
commit
d9253f962e
@ -6,20 +6,12 @@ Class Ciblage
|
||||
private $sphinx;
|
||||
private $alpha = '';
|
||||
private $presentRcs = 0;
|
||||
private $need;
|
||||
|
||||
public $index = 'ciblage';
|
||||
|
||||
public $nb_results = 50000;
|
||||
public $nb_results = 5000;
|
||||
public $max_results = 500000;
|
||||
|
||||
public $mysql_host = '192.168.78.230';
|
||||
public $mysql_user = 'sphinx';
|
||||
public $mysql_password = 'indexer';
|
||||
public $mysql_database = 'jo';
|
||||
|
||||
public $sphinx_host = '192.168.78.252';
|
||||
public $sphinx_port = 3312;
|
||||
public $sphinx_match = SPH_MATCH_EXTENDED2;
|
||||
public $sphinx_sort = SPH_SORT_EXTENDED;
|
||||
|
||||
@ -40,8 +32,11 @@ Class Ciblage
|
||||
public function __construct($structure, $need = false)
|
||||
{
|
||||
$this->need = true;
|
||||
$configuration = Zend_Registry::get('configuration');
|
||||
|
||||
//Instantiation Sphinx
|
||||
$this->sphinx = new SphinxClient();
|
||||
$this->sphinx->SetServer($this->sphinx_host, $this->sphinx_port);
|
||||
$this->sphinx->SetServer($configuration->sphinx->host, intval($configuration->sphinx->port));
|
||||
$this->sphinx->SetMatchMode(SPH_MATCH_EXTENDED2);
|
||||
$this->sphinx->ResetFilters();
|
||||
foreach($structure as $key => $valeur) {
|
||||
@ -172,6 +167,10 @@ Class Ciblage
|
||||
$this->setFilter('adr_com', $valeur);
|
||||
}
|
||||
|
||||
protected function adr_dept($valeur) {
|
||||
$this->setFilter('adr_dept', $valeur);
|
||||
}
|
||||
|
||||
protected function action($valeur) {
|
||||
$this->setFilter('action', $valeur);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user