Added term query to search page