Welcome! Log In Create A New Profile

Advanced

Suggest Framework and problems with several numerical orders

Posted by Tec 
Tec
Suggest Framework and problems with several numerical orders
March 26, 2007 12:46PM
Suggest Framework and problems with several numerical orders
This bug we already discussed a year ago, but as there was no solution until now, I try again.
Ensure that telephone numbers like 0078142 and some ZIP-codes like 77887 or something close are part of your searchkeywords database.
As admin, enable 'Enable Sphider Suggest' and 'Search for suggests in keywords'.
Now please search for: 007 - My suggest table shows several correct results for all numbers starting with 007.
Now search for: 778 - My suggest table offers:
0 13 results
1 5 results
2 3 results
as wrong suggestion.

My solution for this bug (?) :
Open /include/js_suggest/suggest.php
Search for:
arsort($values);
Remove the following row and enter instead:

$non_slice = "[123456789]";
if (!ereg($non_slice,($_GET['q']))) {
$values = array_slice($values, 0, $suggest_rows);
}

Is this my personal problem or could this behavior been confirmed by anyone else?
Tec
Sorry, only registered users may post in this forum.

Click here to login