[ticket/12366] Add Event core.search_get_posts_data

There is currently no way to modify the ($show_results == 'posts') query.

PHPBB3-12366