Author | Topic |

Location: Perth
Registered: November 2002
|
Re: The search functionality on this site!
|
Thu, 25 September 2003 13:37
|
 |
ok, here's the skinny. When you make a post the forum, it puts all the words greater then two characters, and less then 50 characters into a search database. To modify this you need to change a few lines of code, it's in numerous files, so my best suggestion is to download a program like EditPlus that can search through files. The line to search is this
"if ( strlen($w[$i]) > 50 || strlen($w[$i])<3 ) continue;"
and basically take out the OR
"if ( strlen($w[$i]) > 50) continue;"
Then you need to rebuild the search database, which is in the admin controls. This is the bit that will hurt, cause it will basically crawl through the entire post database, and it turns the forum off while it does, so not sure how long it would be down for 
Plus that will increase the sql database, tho really, if you think about the percentage of one or two character words in relation to longer words, I guess its not as much as you would first think.....
But anyway, that's how its done, I installed, modded and tested here and it works sweet as
|
|
|