I'm using the standard SilverStripe search, but it does not find any 3 letter words, is there anyway to change this limit?
Thanks
James
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I'm using the standard SilverStripe search, but it does not find any 3 letter words, is there anyway to change this limit?
Thanks
James
Anyone got any ideas about this? I need the search results to throw back results for two letter searches (products are known as 'V3' or 'V4' etc.).
?? Running 2.4.2
I just tried this (a couple of 2.4.0 sites) and there were some strange results... I got results for 'on' or 'to' and get page results, but not '4u'... I tried with with single/double quotes and without.
I did manage to fix this. It's not a limitation of SilverStripe, it's actually due to a default setting of MySQL.
You need to change the "ft_min_word_len" MySQL variable on the server. The default is 4, changing it to 3 will allow 3 letter searches to work etc.
James
how do you change the mysql setting?
Through htaccess?
Im not hosting my own server, but in the Netherlands we usually pay for hosting on a shared server.