Implemented MatchQuery.