@skillet, I think there are some errors in the script that you repurposed, but IAC I would just use this simple KM solution:
For more information, see the wiki Searching the Forum for Answers section.