change order result doofinder by scoring

This commit is contained in:
Thibault UBUNTU 2016-11-03 12:29:31 +01:00
parent 604df7b90b
commit 6205f866e6

View File

@ -54,7 +54,7 @@ class Antadis_Doofinder extends Module
}
$df = new DoofinderApi($this->hash, $this->api_key);
$output = $df->query($input, 1, array('rpp' => 100, 'sort' => array(array('type' => 'desc'))));
$output = $df->query($input, 1, array('rpp' => 100, 'sort' => array(array('_score' => 'desc') )) );
return array(
'results' => $output->getResults()