Implemented tag_search method with query capability