refactor(thesaurus): Use new API from DocManager (closes #4700)