added middleware.guestSearchingAllowed to the actual search API call