A program for making the document retrieval device 100 function as the key word input processing section 310, the related word development processing section 320, the retrieval processing section 340, the retrieval result selection processing section 360, and the retrieval result holding processing section 380 is recorded on a storage medium such as a CD-ROM, stored on a magnetic disk or the like,