They had to walk a long way , and to search for many hours , before they found the iron door through which the dwarf had disappeared ; and when they had found it they had the greatest difficulty in opening it .