You are here:  » Change back to old search

Support Forum



Change back to old search

Submitted by jonny5 on Sat, 2007-10-20 11:34 in

Hi David , I have been trying to modify the search as described in another thread , when I change it to the - if (0) I just get No results???

any ideas what I maybe doing wrong or is there something else I need to change?

You can switch back to the "old way" really easily. In search.php on Line 63 you'll see this code:

if (strlen($parts[0]) > 3)

That code forces the full text index (as you described) for queries greater than 3 characters in length. To go back to the old method for all queries, the easiest way is to change this to:

if (0)

Submitted by support on Sat, 2007-10-20 19:24

Hi Jonny,

Simply changing the code to if(0) should force the basic search method for all queries, so it may be that the query you are using does not match anything on the basic search. For the basic search, the script simply does string compare against a version of the product name field with spaces removed. The easiest way to confirm the case, is view a product, and then click "Search" whilst on the product page - it should at least find that product. If that's not the case, please drop me an email with a link to your site and your modified search.php attached and i'll take a look for you. Reply to your reg code or forum registration email is the easiest way to get me...

Cheers,
David.

Submitted by jonny5 on Sun, 2007-10-21 19:45

cheers David , Ive sent you an email , so if you could check it I would be very grateful.