Refactored the VocabularyService search method in the front end to return a promise with the success case returning the expected results directly.