... should be encompassed in the Zope source code, unless it's a fully functional external thing, like the HUD, twikIWETHEY, etc.
Things like user stats would preferably be written in Zope, as would the search function you mentioned.
Not to mention half of the search stuff is already done in Zope (just hidden).