Added search for documents (leafs