mgunning, you are spot on! The only problem that I am facing now is that I want to open the child branches of the matched search term as well.
For example, the complete tree is
JohnJacobJingleheimerSchmidt
JaneDoe
Searching "Jane" should return
John (collapsed)
JaneDoe
Any ideas?