refs #288 Functions for getting popular terms and hierachicaly terms