[ticket/12982] Refactoring: Cleaned up phpbb.search

PHPBB3-12982