add new functions for the TopTerms Query
Signed-off-by:jasstion <zhaoyufei@edanzgroup.com>