Implementing simple search analytics (PR#5).