Provided are techniques for handling error documents. One or more entries for error documents are stored in a text index. A document with a document identifier is received. It is determined whether the document has an entry in the text index.