Page 1 of 1

Search Module + Products - attributes indexation

Posted: Fri Dec 09, 2011 8:25 am
by waldemar_r
Hello,

I prepared a Products catalog using Products module. When I search a keyword that exists in Product name, it appears in search results. But when I search for some product's attribute ex. 15001 search result is empty.

I noticed that search indexation class omits numbers during indexation process. Numbers are omitted in search process, why?

Code: Select all

 // strip off anything 3 chars or less
  if( !function_exists('__search_stemphrase_filter') )
    {
      function __search_stemphrase_filter($a)
      {
	return strlen($a) >= 3 && !is_numeric($a);
      }
    }
How can I make CMSMS to index numbers and products attributes?