PDA

View Full Version : ability to search under 4 letter words


pixelsquares
05-23-2006, 03:17 PM
Ok, i know that there was some sort of restrictions for searching for words with under 4 letters. I was wondering if there was anyway to make it work? Any sort of technique so that people can search any number or letter words, because it is kinda annoying if you can't search for say "oil" or whatever someone may want to search for.

I found mnoGoSearch but wasn't 100% sure what it was. Seems like it was some sort of built in PHP search engine or something, if anyone got more information or could help with this, this woudl be great

Cheers

Boby
05-23-2006, 07:13 PM
Yeah, there is a restriction because of the MySQL server. The server is usually configured to have the minimum search length of a keyword set to 4, sometimes admins set it to 3. A word cannot be indexed by MySQL if it's length in under the minimum allowed. The shorter the minimum length is, the harder the search and harder to find some results. Also higher server CPU load.

I assume you are using 3.0.4 or 3.0.5...
Edit search.php and look for this:
Content visible to registered users only. replace it with:
Content visible to registered users only. You can change that if you want, but force at least 1 or 2 chars for minumum.
And I think you won't be able to use the boolean search with this or any other kind of fulltext search.

mnoGoSearch is good, very good, but you'll need someone to set it up for you. It's not that easy to implement into another software.

Boby