Filter tags by query (issue #52).