refactoring SearchController changed AliasesMap to TermsMap