Implemented TermsQuery.