If no tags are selected, do a global search. Otherwise, do the search within the selected tag(s).