CMS MADE SIMPLE FORGE

Search module

 

[#6421] Returns no results for numbers

avatar
Created By: Nathan Koren (nkoren)
Date Submitted: Fri Apr 22 03:23:06 -0400 2011

Assigned To:
Version: 1.5.4
CMSMS Version: None
Severity: Major
Resolution: Invalid
State: Closed
Summary:
Returns no results for numbers
Detailed Description:
I was searching for "2010" -- which occurs frequently throughout my website --
and was startled to find that it returns no results. Experimentation has since
confirmed that any search term which is all-numeric returns no results.


History

Comments
avatar
Date: 2011-08-11 08:40
Posted By: david wolski (dwave)

As of 1.6.6 there's a fix for your problem.
In search.tools.php go to line 51.

Replace

return strlen($a) >= 3 && !is_numeric($a);

with

return strlen($a) >= 4;
      
avatar
Date: 2012-04-14 17:01
Posted By: Ronny Krijt (ronnyk)

2010 in content will show up. Dates will not, unless the module explicitly adds
it...
      
Updates

Updated: 2012-07-23 09:31
state: Open => Closed

Updated: 2012-04-14 17:01
resolution_id: => 9
cmsms_version_id: => -1