Support Forum
We use a lot of acronyms in our industry so the four character minimum on search terms makes many of our key topics impossible to search for - can this limit be adjusted? I understand there may be a performance hit but I'm prepared to make that compromise for a useful search function.
I am sorry to say that this is not something that is under either Simple:Press or WordPress control. It is a setting on your mySQL database and to change it will need the help of your hosting support.
To be perfectly honest I have no idea whether they will be willing to change it or not. I would have thought they would be with the right argument but I would be interested to know how they respond to the request.
YELLOW
SWORDFISH
|
if you have access to your mysql ini file on your server you could change it as well... more info: http://dev.mysql.com/doc/refma.....uning.html
Visit Cruise Talk Central and Mr Papa's World
Thanks, I understand we can't leverage a FULLTEXT index with strings shorter than the mySQL minimum, but that doesn't make searching for shorter strings impossible, just slow. Wordpress has no problem searching for three letter words - can Simple:Press do something similar, as fallback maybe?
== UPDATE ==
After research I can see that by editing the query directly...
/forum/?search=1&value=ABC
...the search works fine with strings of any length, including words shorter than the mySQL minimum. So the only thing preventing a search for short words is restrictive js validation. Unfortunately the script that does that (sp-forum.js) is obfuscated - is there a hook to tweak the validation? Or a way to remove it altogether? We really don't need min-length validated at all.
It will be in the next update to Simple:Press which is due for release at the same time as WordPress 4.5 which is currently at Beta 4 and seems to be progressing nicely.
We are imposing a limit of 3 characters by default as really all recommendations are never to search on less. But this can be overridden by a user if they really feel they need to.
YELLOW
SWORDFISH
|
Yellow Swordfish said
We are imposing a limit of 3 characters...But this can be overridden by a user...
Exactly how?
I'm excited to hear this is possible and would like to explain, since we're getting a lot of new members with three legged cats. I just confirmed that I can search for "cat" but presume the results also return words containing cat like catapult, catacomb or truncate.
FYI: The warning notice only appeared when I searched for " cat " (including the spaces), but the search still returned 7,750+ results—hence my presumption above.
I thought I saw a note somewhere about wildcard characters that could be used in the search query, but can't find that now.
Thanks in advance for any feedback!
Simple:Press powers the Tripawds Discussion Forums.
It's better to hop on three legs than to limp on four.
The Tripawds Blogs Community is made possible by The Tripawds Foundation.
you have to adjust your mysql settings... something like this (dont worry about 5.7 ref): http://dev.mysql.com/doc/refma.....uning.html
Visit Cruise Talk Central and Mr Papa's World
oh wait... lol... was doing the full text search thing like Andy...oops...
in your theme spFunctions.php file, just add this with desired value:
define('SPSEARCHMIN', 3);
of course, be sure you have a child theme or a custom theme and not editing one of ours...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)