When a document cannot be indexed due to file corruption or encryption, apply the filtering algorithm to extract text from the file.