Fixed the search so that it can both list all listings and filter by query.