The advanced search feature (used for saved searches) allows one to search within a project, or to exclude a project, but there’s no way to exclude archived projects from searches. As a result, a search for tasks across projects will return tasks for archived projects, and the only solution is to mark them as “complete”.