It looks like this might be able to be adapted to do what you want:
For more information, see the wiki Searching the Forum for Answers section.