issue #21604: finish terms object