Page 1 of 1

Workaround for short search terms?

Posted: 07 Dec 2015, 15:42
by swpierce
Our hosting server has the mysql configuration set to ft_min_word_len = 4 and we have product names with 3-letter words (such as 'May'). When a customer tries to search for the word 'May' that word is ignored. I thought I remembered seeing in the documentation somewhere a workaround for dealing with shorter search terms but I can't find it now.

Short story: we can't change the configuration on the hosting server. I'm not sure the best way to handle the shorter search terms. 1st thought is to override the default catalog filter search client and pad shorter search terms somehow but that seems like a bad idea the more I think about it.

Anyone point me towards the right direction?

Re: Workaround for short search terms?

Posted: 07 Dec 2015, 16:33
by aimeos
swpierce wrote: Short story: we can't change the configuration on the hosting server. I'm not sure the best way to handle the shorter search terms. 1st thought is to override the default catalog filter search client and pad shorter search terms somehow but that seems like a bad idea the more I think about it.
Our documentation only lists how to change the MySQL setting:
https://aimeos.org/docs/Administrators/ ... mum_length

There's one last resort if nothing else is possible:
You can use the "Default" implementation for the catalog index text manager instead of the "MySQL" one. But beware: This will slow down full text search as it will executing something similar to a LIKE search and this is extremely slow if you have more than a few texts ...