Add functionality to search for N records on tickets, search and tickets in views.