add calc topic|doc from topic terms