Search not sorting properly
Permalink
I am trying to get my search results sorted by relevance. Based on prior posts I copied /concrete/core/controller/blocks/search.php into /controllers/blocks/search.php and then changed the line that read:
$ipl->setSimpleIndexMode(true);
to
$ipl->sortByRelevance();
(see post:http://www.concrete5.org/community/forums/customizing_c5/sort-searc...
Unfortunately, the sort is still not worting correctly -- just looks like it is sorting the same way as when it was setup with the simpleindexmode. What am I doing wrong? Any suggestions are appreciated.
Thank you.
$ipl->setSimpleIndexMode(true);
to
$ipl->sortByRelevance();
(see post:http://www.concrete5.org/community/forums/customizing_c5/sort-searc...
Unfortunately, the sort is still not worting correctly -- just looks like it is sorting the same way as when it was setup with the simpleindexmode. What am I doing wrong? Any suggestions are appreciated.
Thank you.