core: Add #search_query{} notification as a record.

It used to be a raw tuple, which is unlike all other notifications.