there are atleast two ways of doing it, the recommended one is
1) relinking the documents to the library to do so
a) go to document library -> settings -> document library settings -> relink documents to this library and check the documents and click relink selected documents.