Added the termSearch implementation