Support forum login

©2006-2008 IAAI Software

Contact Us

Searching for partial product words in product title.

Submitted by mally on Tue, 2008-05-13 21:12.

Hello David

I'm wondering if it is possible for the search tool to bring back results where the search term is a partial match to a word int he title.

ie. on my Magazine Subscriptions website if I search for the term hazard it comes back with no result however if I search for hazards (note the extra s) it comesback with Chemical Hazards In Industry Magazine and Laboratory Hazards Bulletin Magazine

Would this be possible?

thanks

Mally

Submitted by dmorison on Wed, 2008-05-14 08:14.

Hi Mally,

Yes, this is possible if you revert to using the basic search method for all queries instead of the full text index. The full text index only works on entire words (as you are seeing). To use the basic search for all queries, look for the following code in search.php:

        if ($useFullText)

...and change this to:

        if (FALSE)

That will disable the use of the full text index and partial words should then match...

Cheers,
David.

--
Developer, Price Tapestry
For unrelated PHP, MySQL or Affiliate Marketing tech help please post your questions on my personal forum

Submitted by mally on Thu, 2008-05-15 15:06.

great stuff

thanks

Mally