[-] FO : instant search relevancy fixed #PSCFV-4267

This commit is contained in:
dMetzger
2012-09-21 10:05:07 +00:00
parent f3156c9117
commit 6b0515db2d
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class SearchControllerCore extends FrontController
$this->productSort();
$this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE'))));
$this->p = abs((int)(Tools::getValue('p', 1)));
$search = Search::find($this->context->language->id, $query, $this->p, $this->n, $this->orderBy, $this->orderWay);
$search = Search::find($this->context->language->id, $query, 1, 10, 'position', 'desc');
Hook::exec('actionSearch', array('expr' => $query, 'total' => $search['total']));
$nbProducts = $search['total'];
$this->pagination($nbProducts);