Log user search and stats on query