Implement Search event logging.

Change-Id: I8c58836df6ff57a998470184d3501a2a65936921