Implemented method to getTerms from TermsFilter